Hi,

Nikita provided a small patch for this problem on #reiser4:

--- dir.c.org   2004-08-29 11:32:40.000000000 +0200
+++ dir.c       2004-08-29 12:03:40.000000000 +0200
@@ -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;


[EMAIL PROTECTED]:~$ uname -r
2.6.8.1-mm4
[EMAIL PROTECTED]:~$ ln  foo/metas/bmap bla
ln: creating hard link `bla' to `foo/metas/bmap': Operation not
 permitted

(Symlinks are still working...)

bye

Reply via email to