From: Eric Sandeen <sandeen@sandeen.net>
To: Dan Am <xfs@lonx.net>
Cc: xfs@oss.sgi.com
Subject: Re: "xfs_io -c chattr +i " on a symlink
Date: Thu, 03 Aug 2006 09:13:07 -0500 [thread overview]
Message-ID: <44D20473.3010304@sandeen.net> (raw)
In-Reply-To: <28749.62.159.242.114.1154600816.squirrel@otto.lonx.net>
Dan Am wrote:
> (resend, since I used the wrong account to send the initial mail, sorry)
>
> Dear list,
>
> I am trying to make a symlink immutable with chattr, however the command
> seems to follow the link, which point to a NFS Mount.
> Setting xattr works on symlink btw, which is useful.
> More data below
> Any ideas ?
>
> Best Regards
> Dan
>
> Heres the situation from my machine's view:
> /data > ls -l bin
> lrwxrwxrwx 1 root root 48 Aug 2 15:53 bin -> /archive/l01abnfs07/bin
>
> /data> xfs_io -c "chattr +i" bin
> xfs_io: specified file ["bin"] is not on an XFS filesystem
>
> ~ > xfs_io -V
> xfs_io version 2.8.4
Try just using chattr.
[sandeen@sandeen ~]$ ln -s /tmp tmplink
[sandeen@sandeen ~]$ ls -l tmplink
lrwxrwxrwx 1 sandeen sandeen 4 Aug 3 09:05 tmplink -> /tmp
[sandeen@sandeen ~]$ su
Password:
[root@sandeen sandeen]# chattr +i tmplink
[root@sandeen sandeen]# stat -f tmplink
File: "tmplink"
ID: 802 Namelen: 255 Type: XFS (0x58465342)
Blocks: Total: 23377204 Free: 8557099 Available: 8557099 Size: 4096
Inodes: Total: 93554496 Free: 93202008
[root@sandeen sandeen]#
[root@sandeen sandeen]# lsattr tmplink
----i-------- tmplink
xfs_io also has an option to try to do operations even on non-xfs filesystems,
if that helps... if it follows the link & sets the attr on the link target, that
may not be behaving as expected though.
-Eric
next prev parent reply other threads:[~2006-08-03 14:13 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-03 10:26 "xfs_io -c chattr +i " on a symlink Dan Am
2006-08-03 14:13 ` Eric Sandeen [this message]
2006-08-04 0:29 ` Nathan Scott
2006-08-04 2:38 ` Eric Sandeen
2006-08-04 11:37 ` Dan Am
2006-08-07 4:54 ` Nathan Scott
2006-08-04 0:28 ` Nathan Scott
2006-08-04 4:20 ` Chris Wedgwood
-- strict thread matches above, loose matches on Subject: below --
2006-08-04 8:15 Dan Am
2006-08-04 9:13 ` Timothy Shimmin
2006-08-03 10:18 Daniel Amthor
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=44D20473.3010304@sandeen.net \
--to=sandeen@sandeen.net \
--cc=xfs@lonx.net \
--cc=xfs@oss.sgi.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.