From: Andreas Dilger <adilger@turbolinux.com>
To: Marc-Jano Knopp <mjk@rbg.informatik.tu-darmstadt.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.4.6: chattr / lsattr does not work on directories anymore!
Date: Fri, 20 Jul 2001 09:07:25 -0600 (MDT) [thread overview]
Message-ID: <200107201507.f6KF7PE5017282@webber.adilger.int> (raw)
In-Reply-To: <20010720134252.A758@rbg.informatik.tu-darmstadt.de> "from Marc-Jano Knopp at Jul 20, 2001 01:42:52 pm"
You write:
> Since kernel 2.4.6, the commands 'lsattr' and 'chattr' do not work
> anymore when applied to directories:
>
> As root:
>
> # mkdir x
> # chattr +i x
> chattr: Inappropriate ioctl for device while reading flags on x
> # lsattr -d x
> lsattr: Inappropriate ioctl for device While reading flags on x
This is fixed in the most recent Linus and -ac kernels. The fix is below.
Cheers, Andreas
==========================================================================
--- linux-2.4.6.orig/fs/ext2/dir.c Thu Jun 28 14:28:24 2001
+++ linux-2.4.6-aed/fs/ext2/dir.c Tue Jul 10 22:59:12 2001
@@ -576,5 +576,6 @@
struct file_operations ext2_dir_operations = {
read: generic_read_dir,
readdir: ext2_readdir,
+ ioctl: ext2_ioctl,
fsync: ext2_sync_file,
};
--
Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto,
\ would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/ -- Dogbert
prev parent reply other threads:[~2001-07-20 15:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-20 11:42 Marc-Jano Knopp
2001-07-20 15:07 ` Andreas Dilger [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=200107201507.f6KF7PE5017282@webber.adilger.int \
--to=adilger@turbolinux.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mjk@rbg.informatik.tu-darmstadt.de \
/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
all inboxes | Powered by JetHome®