fix snapshot content display with hide unreadable
authorChristian Ambach <christian.ambach@de.ibm.com>
Wed, 14 Apr 2010 08:05:56 +0000 (10:05 +0200)
committerVolker Lendecke <vl@samba.org>
Wed, 4 Aug 2010 11:56:11 +0000 (13:56 +0200)
commitb77f241b28bcf29a88e28a49623a5e99a356bb34
treea4126a86f444608f14cd24c06e601c6d41f02925
parentcc2aa855a3cc690716233bde57ae74711813db0f
fix snapshot content display with hide unreadable

With the hide unreadable option set, snapshots are be displayed
as empty with shadow_copy2 and a NFSv4 ACL module.

To prevent multiple conversions of the paths when the acl call
does a VFS_STAT (as the nfs4acl code does), a check was added
to convert_shadow2_name() so it will not touch paths any more
that look like they have already been converted.

Signed-off-by: Christian Ambach <christian.ambach@de.ibm.com>
source3/modules/vfs_shadow_copy2.c