cvs commit: src/sys/kern vfs_syscalls.c
Simon 'corecode' Schubert
corecode at fs.ei.tum.de
Tue Aug 16 03:32:45 PDT 2005
On 15.08.2005, at 18:01, Joerg Sonnenberger wrote:
The problem here is that when old and new resolve to the same
file (read: reference the same inode) strange race conditions can occur
which might led to the reference counter reaching 0 for example.
Yes, but if we do it correctly (namecache helping here), this won't
happen.
That is exactly the behaviour the standard wants to avoid. The wording
of SUS is also pretty clear, "resolve to the same existing name" does
mean nothing less than having the same inode for a traditional Unix
filesystem. I also won't say this behaviour is counter-intuitive, it
makes as much sense as just dropping the old node.
The standard is clear to me: it doesn't talk about links, but symbolic
links.
--
Serve - BSD +++ RENT this banner advert +++ ASCII Ribbon /"\
Work - Mac +++ space for low $$$ NOW!1 +++ Campaign \ /
Party Enjoy Relax | http://dragonflybsd.org Against HTML \
Dude 2c 2 the max ! http://golden-apple.biz Mail + News / \
Attachment:
PGP.sig
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pgp00018.pgp
Type: application/octet-stream
Size: 186 bytes
Desc: "Description: This is a digitally signed message part"
URL: <http://lists.dragonflybsd.org/pipermail/commits/attachments/20050816/93f292fe/attachment-0022.obj>
More information about the Commits
mailing list