vfs_gpfs: use handle based gpfswrap_get_winattrs()
authorRalph Boehme <slow@samba.org>
Tue, 17 May 2022 14:32:23 +0000 (16:32 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 3 Jun 2022 20:56:35 +0000 (20:56 +0000)
commit8ae672f955bf07bb97f38b7d2f965f14e8315e9e
tree2a872fd71b4bd7cd79a2d505f6d1cb770378935f
parent9172c5ff6a419e4daef451564650d4a3ce96bfae
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>
source3/modules/vfs_gpfs.c