VOP_RENAME(9) arguments question
Yar Tikhiy
yar at freebsd.org
Mon Jun 23 07:15:05 PDT 2003
Hi there,
I've seen code in the VOP_RENAME() vop implementations handling
various cases of some of fvp, fdvp, tvp, and tdvp being different,
or the same, or NULL. Some of such cases seem clear to me:
tvp == NULL -- the destination file doesn't exist yet
tdvp == fdvp -- renaming within the same directory
tvp == fvp -- source and destination are hardlinks to the same file
But what does mean the case of "tvp == tdvp"? I guess this can be
true only if renaming to the root directory, which will fail, yet
is a special case for unlocking tvp and tdvp.
Can there be other special cases of arguments to VOP_RENAME(9)
a developer should be aware of?
--
Yar
More information about the freebsd-arch
mailing list