From: Theodore Ts'o <tytso@mit.edu>
To: Wang Shilong <wangshilong1991@gmail.com>
Cc: linux-ext4@vger.kernel.org, sihara@ddn.com
Subject: Re: [PATCH] e2p: fix getflags for link file
Date: Tue, 5 Dec 2017 11:10:10 -0500 [thread overview]
Message-ID: <20171205161010.2q2owkepbk6zg2hp@thunk.org> (raw)
In-Reply-To: <1512395795-10022-1-git-send-email-wshilong1991@gmail.com>
On Mon, Dec 04, 2017 at 10:56:35PM +0900, Wang Shilong wrote:
> From: Wang Shilong <wshilong@ddn.com>
>
> Steps to reproduce:
>
> $ touch a
> $ lsattr -dp a
> 2000 ----------------P a
> $ ln -s a b
> $ lsattr -dp b
> lsattr: Operation not supported While reading flags on b
>
> Link files should be supported, fix it.
>
> Signed-off-by: Wang Shilong <wshilong@ddn.com>
You can't actually set or get the extended attributes for a symlink;
the *kernel* doesn't support what you seem to be hoping to achieve.
This patch result in fgetflags() following the symlink and opening
whatever file it points at.
- Ted
next prev parent reply other threads:[~2017-12-05 16:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-04 13:56 [PATCH] e2p: fix getflags for link file Wang Shilong
2017-12-05 16:10 ` Theodore Ts'o [this message]
2017-12-06 0:41 ` Wang Shilong
[not found] ` <CAP9B-Qnu=SrKx60q7B1Wyzd_a_Po-vX3Ah_avTnFudZO2PsAyw@mail.gmail.com>
2017-12-06 2:44 ` Theodore Ts'o
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=20171205161010.2q2owkepbk6zg2hp@thunk.org \
--to=tytso@mit.edu \
--cc=linux-ext4@vger.kernel.org \
--cc=sihara@ddn.com \
--cc=wangshilong1991@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).