fix snapshot content display with hide unreadable
authorChristian Ambach <christian.ambach@de.ibm.com>
Fri, 9 Apr 2010 11:38:28 +0000 (13:38 +0200)
committerVolker Lendecke <vl@samba.org>
Wed, 14 Apr 2010 12:50:52 +0000 (14:50 +0200)
commit30b5a1d2290fb09d3622de04322bd6eac97cea24
treec3cf67511cb1446e5cd4d2555547a0bea54c983b
parentbf36d608f869ea6aaa7007e2df4de0a943f0264e
fix snapshot content display with hide unreadable

With the hide unreadable option set, snapshots are be displayed
as empty because the shadow_copy2 module did not implement the
fget_nt_acl call that is used by the hide unreadable code and
so the paths were not corrected internally.

To prevent multiple conversions of the paths when the acl call
does a VFS_STAT (like 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>
source/modules/vfs_shadow_copy2.c