On Mon, Aug 01, 2011 at 09:46:33AM +0000, Emmanuel Dreyfus wrote:
 > +    return do_sys_link(l, path, link, FOLLOW, retval);
 >
 > +    return do_sys_link(l, path, link, NOFOLLOW, retval);

Can you use a boolean argument for that instead of namei flags?

 > +.Fn llink
 > +is like 
 > +.Fn link
 > +except in the case where the named file is a symbolic link, in which case 
 > +.Fn llink
 > +links on the symbolic link itself, while
 > +.Fn link
 > +links on the symbolic link target. 

How about:

.Fn llink
is kthe same as
.Fn link
except in the case where
.Fa name1
is a symbolic link.
In this case
.Fn llink
creates an additional (hard) link to the symbolic link, whereas
.Fn link
creates an additional (hard) link to the symbolic link's target.


[I'm still not convinced it's worth supporting this feature ~forever,
but the patch may as well be good. :-) ]

-- 
David A. Holland
[email protected]

Reply via email to