Hi,

On Wed, Sep 16, 2009 at 12:18 AM, Nate Eldredge
<n...@thatsmathematics.com> wrote:
[...]
> [On UFS, files are created with the same group as the directory that
> contains them.  On ZFS, they are created with the primary group of the user
> who creates them.]
>
>> What I ask now is: is this a bug or a feature?
>
> Both, I think :)
>
> The behavior you describe on UFS (group comes from the directory) is
> standard for BSD-based systems like FreeBSD.  On SysV-based systems,
> however, the default is that the group comes from the user, as you describe
> on ZFS.  ZFS was originally developed for Solaris, a descendent of SysV, so
> it's not surprising that it also has this behavior.  However, this is at
> least a documentation bug, since the open(2) man page describes the BSD
> behavior without mentioning exceptions.

Is the ownership of the new file decided by the open() syscall or by
the filesystem layer ?
On a superficial lookup through the sources it appears a filesystem
layer choice...

Which of the following would then be the best option (also taking POLA
into account):
 * leave things are they are
 * make ZFS under FreeBSD behave the way open(2) describes
 * have a new ZFS property govern the behavior and default to one of the above

Thanks,
Adrian Penisoara
EnterpriseBSD
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Reply via email to