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, 14 Apr 2010 12:54:29 +0000 (14:54 +0200)
commita457c6216ff8c5e42d5e56118867d9acb619087a
tree8486ad1af3ba7874ef1edd255cf2267fd36a2447
parent1cd08027fe5e3d66221c38d99d8e907771c6bb01
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