VOP_RENAME(9) arguments question
From: Yar Tikhiy (yar_at_freebsd.org)
Date: 06/23/03
- Previous message: david.huysmans_at_belgacom.be: "little question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 23 Jun 2003 18:14:56 +0400 To: arch@freebsd.org
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 _______________________________________________ freebsd-arch@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-arch To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"
- Previous message: david.huysmans_at_belgacom.be: "little question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]