[Top] [All Lists]

Re: "xfs_io -c chattr +i " on a symlink

To: Nathan Scott <nathans@xxxxxxx>
Subject: Re: "xfs_io -c chattr +i " on a symlink
From: Chris Wedgwood <cw@xxxxxxxx>
Date: Thu, 3 Aug 2006 21:20:03 -0700
Cc: Dan Am <xfs@xxxxxxxx>, xfs@xxxxxxxxxxx
In-reply-to: <20060804102814.A2401829@wobbly.melbourne.sgi.com>
References: <28749.> <20060804102814.A2401829@wobbly.melbourne.sgi.com>
Sender: xfs-bounce@xxxxxxxxxxx
On Fri, Aug 04, 2006 at 10:28:14AM +1000, Nathan Scott wrote:

> Its not possible to open(2) a symbolic link (see
> fs/namei.c::may_open), which means you cannot get a file descriptor
> for a symlink, which means you cannot issue an ioctl(2) to a symlink
> (which is how the inode flags are set), which means you're out of
> luck on this one, sorry.

I always disliked open/ioctl for this.  I think we should actually
have a separate syscall for chattr, etc. (FreeBSD does this I think?)

<Prev in Thread] Current Thread [Next in Thread>