On Fri, Jul 11, 2003 at 04:20:43PM -0700, Greywolf wrote:
Well, for traditional UNIX filesystem both can be implemented by *stat.
For local filesystems without ACLs too. As soon as ACLs are implemented
e.g. in FFS, NTFS, AFS to name a few *stat is _not_ enough to implement
access or faccess. Even implementing proper ACL checks in user space
might not be enough for network filesystems like AFS if you don't check
the actual credentials. So basically an implementation of access or
faccess in user space would is filesystem dependent.
I like the idea of flink(2). With flink you could extend the creat(3)
syntax (or open(2)) to allow creation of anonymous files on a filesystem
given jut one writtable directory and later add a reference somewhere.
E.g. passwd creates an anonymous files, updates it with the content of
/etc/master.passwd and links it there. To cleanup mess with unexpected
reboot etc.
Me too.
Joerg