[SMB3POSIX] File attributes

Steve French smfrench at gmail.com
Wed Nov 15 05:14:30 UTC 2023


interesting question - worth looking into.

This reminded me that one POSIX feature that is problematic running to
Samba server is that Samba (unlike other servers not just Windows)
doesn't update ctime on hardlinks and doesn't update ctime on set or
remove xattr (it looks like Samba server is returning the ctime from
mtime not the ctime from the ctime)

On Tue, Nov 14, 2023 at 3:15 AM Ralph Boehme <slow at samba.org> wrote:
>
> On 11/13/23 18:50, Jeremy Allison wrote:
> > On Mon, Nov 13, 2023 at 12:28:18PM +0100, Ralph Boehme wrote:
> >> We had support for file atttributes in the CIFS UNIX extensions, this
> >> is currently not in the spec (or code) for SMB3 POSIX.
> >>
> >> Is this intentional? What is the reason?
> >
> > Do you mean the attributes listed by:
> >
> > man chattr.
>
> yes.
>
> > chattr - change file attributes on a Linux file system
> >
> > This was at the insitence of Steve as I recall.
>
> adding Steve to the loop.
>
> > We never implemented this.
> >
> > Might be done via a tunnelling ioctl ? Other thoughts ?
>
> well, it's a rabbit hole of its own and still seem to be rarely used on
> Linux and the BSDs. It's not POSIX anyway so just declare it out of
> scope for now?
>
> The Linux interface is via ioctls so doing it over the wire via SMB2
> IOCTLs looks like a good way forward allowing us to ignore this for now
> and possibly add it later if there's demand and resources to implement it.
>
> -slow



-- 
Thanks,

Steve



More information about the samba-technical mailing list