shadow_copy2: use stored mount_point instead of recalculating.
commit4f0111f0135d4ab361306fbd47d882b28dac0fc8
authorMichael Adam <obnox@samba.org>
Thu, 30 May 2013 22:46:01 +0000 (31 00:46 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 13 Jan 2014 09:17:22 +0000 (13 10:17 +0100)
tree9ad52b91972d1c83d59a44d1f4bfe1612892e86d
parent497aff745a75ce75989738bb8bf756b9ffa66ed6
shadow_copy2: use stored mount_point instead of recalculating.

In the case of snapdirseverywhere but NOT crossmountpoints.

This spares stat calls.
And is the only correct thing to do if the mount point was
specified in the configuration.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit 6ccbc1347d3240fc3c874a1957b654456fb6234c)
source3/modules/vfs_shadow_copy2.c