All of lore.kernel.org
 help / color / mirror / Atom feed
* chattr: operation not supported ( on symlinks )
@ 2014-03-07 20:16 Phillip Susi
  2014-03-08 15:29 ` Theodore Ts'o
  0 siblings, 1 reply; 2+ messages in thread
From: Phillip Susi @ 2014-03-07 20:16 UTC (permalink / raw)
  To: ext4 development

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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?

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTGikYAAoJEI5FoCIzSKrwXhgH/3ZMK5OBUNRK6Pty+lSk/aj6
P7KkeLkJl16TaeNFp/rFoDju16PA/I3uPQipY25VdNYNCVMEmQOd0i//55gU47ur
ZtdjAD4vMNTpFsV/oxjrx+f6kp1OqYKylConQxo/AAS+YDHq7adCds31N8mny1o8
WI/TYp3M4uGtQQ2yHF5j7jvZNR2gacMrXfN+6fbdIP99I2j4v4eHdvJJRQuo5vun
Q2ZQw5a/GGPlXUYcIcnFkmXlNDJIfGO7WPxXfaUbspQwRH21Ithr61pk1LVLZjN9
eptvSQpXBhKdQzeAMbUKS5AIoN7u0KMcIErfhR2mwDncfCcsI/PPTQSSf8B1L0o=
=vzkc
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: chattr: operation not supported ( on symlinks )
  2014-03-07 20:16 chattr: operation not supported ( on symlinks ) Phillip Susi
@ 2014-03-08 15:29 ` Theodore Ts'o
  0 siblings, 0 replies; 2+ messages in thread
From: Theodore Ts'o @ 2014-03-08 15:29 UTC (permalink / raw)
  To: Phillip Susi; +Cc: ext4 development

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-03-08 15:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-07 20:16 chattr: operation not supported ( on symlinks ) Phillip Susi
2014-03-08 15:29 ` Theodore Ts'o

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.