Symlinks on read-only FS
Deomid Ryabkov
myself at rojer.pp.ru
Tue Sep 19 20:04:03 PDT 2006
Perry Hutchison wrote:
> Is the inclusion of VLNK here correct? I would think that
> only the target of the symlink should matter: if it happens
> to point onto a writable FS, the fact that the symlink itself
> is on a ROFS should not matter.
yes, it is correct.
short symbolic links are stored in the inode itself, so if you modify a short link,
you'll be modifying metadata, which is not allowed. it could be argued,
that as long as the change is restricted to one inode, it could be tolerable,
but moreover, if your short symbolic link is modified to be longer than fits in inode,
a disk block will need to be allocated, which would involve a change to block map,
which is certainly not desirable for read-only mounts.
--
Deomid Ryabkov aka Rojer
myself at rojer.pp.ru
rojer at sysadmins.ru
ICQ: 8025844
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3295 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20060920/eac16261/smime.bin
More information about the freebsd-hackers
mailing list