gpfs vfs incorrectly returning offline status 'at random' in 3.6 and up
simo
idra at samba.org
Fri Oct 5 08:10:49 MDT 2012
On Fri, 2012-10-05 at 15:22 +0200, Christian Ambach wrote:
> On 09/28/2012 05:52 PM, Barry Evans wrote:
>
> > Anything look interesting?
>
> I think the lack of some config parameters is the interesting piece.
> gpfs:winattr defaults to false, so I guess the is_offline function
> operates on un-initialized memory.
>
> The code in master/4.0 has a guard in vfs_gpfs_is_offline() that skips
> the checks if gpfs:winattr is disabled.
>
> if (!config->winattr) {
> return SMB_VFS_NEXT_IS_OFFLINE(handle, fname, sbuf);
> }
>
> That guard is not present in 3.6.
>
> However, give it a try enabling it with
> gpfs:winattr = yes
>
> and the following additional parameters, to make Samba store Windows
> attributes in the native GPFS attributes:
>
> store dos attributes=yes
> map readonly = yes
> map archive = yes
> map system = yes
> map hidden = yes
> ea support=yes
IIRC when you enable store dos attributes you should actually disable
mapping dos bits.
Am i mis-remembering or did something change?
Simo.
--
Simo Sorce
Samba Team GPL Compliance Officer <simo at samba.org>
Principal Software Engineer at Red Hat, Inc. <simo at redhat.com>
More information about the samba-technical
mailing list