Re: Should VOP_RENAME fail if tdvp has an IMMUTABLE flag set?
- In reply to: Konstantin Belousov : "Re: Should VOP_RENAME fail if tdvp has an IMMUTABLE flag set?"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 17 Oct 2024 08:22:12 UTC
Hi, > Intuitively, I would think that an APPEND-only directory would allow > new entries. I agree with that. With respect to append-only, the crucial point in the rename case is whether the target name already exists in the target directory, because in this case the rename operation should be denied obviously. Otherwise, the rename should work. > APPEND for UFS directories is a strange idea, for instance, does the directory > compaction breaks append-only? I think that flags apply to public operations, those that can be realized through the usual interface. Here, APPEND is arguably about adding files to directories, regardless of the actual mechanism implementing the addition of entries. Consequently, I don't think UFS directory compaction should matter in the discussion of the semantics. But perhaps you're foreseeing a specific implementation problem? Thanks and regards. -- Olivier Certner