vfs_gpfs: use handle based gpfswrap_get_winattrs()
commitb8cc300d226fe6a04ce26d6f91fcd484e4f0403a
authorRalph Boehme <slow@samba.org>
Tue, 17 May 2022 14:32:23 +0000 (17 16:32 +0200)
committerJule Anger <janger@samba.org>
Thu, 9 Jun 2022 08:54:16 +0000 (9 08:54 +0000)
tree42e5a055f25e07b6f4f75484932367a807cfccb2
parent72ef38a9747b576c6640e9b43f7b70e37f5839cb
vfs_gpfs: use handle based gpfswrap_get_winattrs()

Fixes detecting offline flag for files in snapshot – no idea if this is
actually expected.

Replaces path based gpfswrap_get_winattrs_path() with handle based version
gpfswrap_get_winattrs(). When dealing with files in snapshots fsp->fsp_name
points to the active dataset, which will cause ENOENT failures if files are
deleted there any only present in the snapshot.

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

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Christof Schmitt <cs@samba.org>
(cherry picked from commit 8ae672f955bf07bb97f38b7d2f965f14e8315e9e)
source3/modules/vfs_gpfs.c