s3: vfs: snapper: Add and use len_before_gmt, calculated as (p-name).
commitb4a05b1f881cfe80570c2848321cebaa9a755558
authorJeremy Allison <jra@samba.org>
Wed, 17 Aug 2016 17:53:08 +0000 (17 10:53 -0700)
committerStefan Metzmacher <metze@samba.org>
Sun, 28 Aug 2016 16:12:09 +0000 (28 18:12 +0200)
treea3e4d11187b7cefde70c21aee7b214a27fb2d832
parente5baf884efeb443575857066c3b5c0d4d14548dd
s3: vfs: snapper: Add and use len_before_gmt, calculated as (p-name).

Make the code closer to the same functionality in shadow_copy2.c:shadow_copy2_strip_snapshot().

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12150

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Christof Schmitt <cs@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
(cherry picked from commit 3e3b9be948d873696a1ab9c0cb859bd8911165f0)
source3/modules/vfs_snapper.c