Re: [zfs-discuss] NFS sgid directory interoperability with Linux

2009-10-13 Thread Brian De Wolf
On 10/12/2009 04:38 PM, Paul B. Henson wrote: I only have ZFS filesystems exported right now, but I assume it would behave the same for ufs. The underlying issue seems to be the Sun NFS server expects the NFS client to apply the sgid bit itself and create the new directory with the parent directo

Re: [zfs-discuss] NFS sgid directory interoperability with Linux

2009-10-13 Thread Paul B. Henson
On Tue, 13 Oct 2009, Joerg Schilling wrote: > The correct behavior would be to assign the group ownership of the parent > directory to a new directory (instead of using the current process > credentials) in case that the sgid bit is set in the parent directory. > Is this your problem? Yes, that i

Re: [zfs-discuss] NFS sgid directory interoperability with Linux

2009-10-13 Thread Paul B. Henson
On Tue, 13 Oct 2009 casper@sun.com wrote: > If you look at the code in ufs and zfs, you'll see that they both create > the mode correctly and the same code is used through NFS. > > There's another scenario: the Linux client updates the attributes after > creating the file/directory/ I don't t

Re: [zfs-discuss] NFS sgid directory interoperability with Linux

2009-10-13 Thread Joerg Schilling
"Paul B. Henson" wrote: > > We're running Solaris 10 with ZFS to provide home and group directory file > space over NFSv4. We've run into an interoperability issue between the > Solaris NFS server and the Linux NFS client regarding the sgid bit on > directories and assigning appropriate group own

Re: [zfs-discuss] NFS sgid directory interoperability with Linux

2009-10-13 Thread Casper . Dik
>I only have ZFS filesystems exported right now, but I assume it would >behave the same for ufs. The underlying issue seems to be the Sun NFS >server expects the NFS client to apply the sgid bit itself and create the >new directory with the parent directory's group, while the Linux NFS client >ex

Re: [zfs-discuss] NFS sgid directory interoperability with Linux

2009-10-12 Thread Paul B. Henson
On Mon, 12 Oct 2009, Mark Shellenbaum wrote: > Does it only fail under NFS or does it only fail when inheriting an ACL? It only fails over NFS from a Linux client, locally it works fine, and from a Solaris client it works fine. It also only seems to fail on directories, files receive the correct

Re: [zfs-discuss] NFS sgid directory interoperability with Linux

2009-10-12 Thread Mark Shellenbaum
Paul B. Henson wrote: We're running Solaris 10 with ZFS to provide home and group directory file space over NFSv4. We've run into an interoperability issue between the Solaris NFS server and the Linux NFS client regarding the sgid bit on directories and assigning appropriate group ownership on ne