All of lore.kernel.org
 help / color / mirror / Atom feed
From: Theodore Ts'o <tytso@mit.edu>
To: Phillip Susi <psusi@ubuntu.com>
Cc: ext4 development <linux-ext4@vger.kernel.org>
Subject: Re: chattr: operation not supported ( on symlinks )
Date: Sat, 8 Mar 2014 10:29:57 -0500	[thread overview]
Message-ID: <20140308152957.GA11633@thunk.org> (raw)
In-Reply-To: <531A2918.9020108@ubuntu.com>

On Fri, Mar 07, 2014 at 03:16:24PM -0500, Phillip Susi wrote:
> It seems that symlinks return -ENOTSUP for lsattr, causing chattr -R
> to spew errors.  Why don't symlinks support attributes, and if not,
> shouldn't chattr know this and suppress operating on symlinks instead
> of spewing errors?

The VFS layer doesn't pass ioctl's down to the file system layer for
symlinks.  Thinking about this, arguably the right answer is to allow
chattr to function on symlinks, since it cloud be useful to make
symlinks immutable.

						- Ted

      reply	other threads:[~2014-03-08 15:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-07 20:16 chattr: operation not supported ( on symlinks ) Phillip Susi
2014-03-08 15:29 ` Theodore Ts'o [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140308152957.GA11633@thunk.org \
    --to=tytso@mit.edu \
    --cc=linux-ext4@vger.kernel.org \
    --cc=psusi@ubuntu.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.