reiser4 metas and hard links...
Hi,
ln metas/bmap test
produces a nice Oops.
Please look at the LKML thread about "silent semantic changes", there seem to be some real problems with file/directory hybrids.
Anyway, I personally think these things should belong inside the generic filesystem code and not a specific filesystem. As should some other things, perhaps (kcond?).
Hi,
Nikita provided a small patch for this problem on #reiser4:
dir.c 2004-08-29 12:03:40.000000000 +0200 renamed from dir.c.org 2004-08-29 11:32:40.000000000 +0200 +3 -0
@@ -126,6 +126,9 @@ data.mode = object->i_mode; data.id = inode_file_plugin(object)->h.id; + if (!inode_file_plugin(object)->can_add_link(object)) + return -EPERM; + reserve = common_estimate_link(parent, existing->d_inode); if ((__s64)reserve < 0) return reserve;
ulrich@fuzzy:~$ uname -r 2.6.8.1-mm4 ulrich@fuzzy:~$ ln foo/metas/bmap bla ln: creating hard link `bla' to `foo/metas/bmap': Operation not permitted
(Symlinks are still working...)
bye