linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Bug in ext4/btrfs fallocate?
@ 2010-12-28 16:06 Marco Stornelli
  2010-12-29  6:46 ` Andreas Dilger
  0 siblings, 1 reply; 3+ messages in thread
From: Marco Stornelli @ 2010-12-28 16:06 UTC (permalink / raw)
  To: linux-ext4, linux-btrfs; +Cc: Linux Kernel, Linux FS Devel, tytso, chris.mason

Hi,

it seems that ext4/btrfs code for fallocate doesn't check for
immutable/append inode flag. I think it's possible to do an fallocate
operation even if the immutable flag is turned on. You can think about
this case: an application opens a file for read/write, meanwhile a user
set the immutable flag and then the application calls fallocate. Other
cases shouldn't happen because if the immutable flag is turned on before
the application opens the file, then the application can't open the file
in read/write mode and therefore it can't do an fallocate operation.
Sincerely I haven't tried but I saw this kind of error in my own fs that
have a similar code.

Regards,

Marco

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

end of thread, other threads:[~2010-12-29  9:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-28 16:06 Bug in ext4/btrfs fallocate? Marco Stornelli
2010-12-29  6:46 ` Andreas Dilger
2010-12-29  9:02   ` Marco Stornelli

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).