Loop devices under NTFS
Quoted 9 lines · Adam J. Richter
Quoted 5 lines
There are only a few file systems that provide writable files
without aops->{prepare,commit}_write. I think they are just tmpfs, ntfs and intermezzo. If all file systems that provided writable files could be expected to provide {prepare,commit}_write, I could eliminate the file_ops->{read,write} code fromloop.c.This is the wrong level of abstraction. There is no reason why a filesystem has to use the pagecache at all.
Are you complaining about something in loop.c, or are you just
saying that you'd like to see some kind of generic_file_{prepare,commit}_write routines that plain files in all writable filesystems could use?
Quoted 2 lines
Note that there is a more severe bug in
loop.c: it's abuse ofdo_generic_file_read.
Could you please elaborate on this and give an example where
it return incorrect data, deadlock, generate a kernel oops, etc.?
Adam J. Richter __ ______________ 575 Oroville Road [email protected] \ / Milpitas, California 95035 +1 408 309-6081 | g g d r a s i l United States of America
"Free Software For The Rest Of Us."
Quoted 1 line · Adam J. Richter
Are you complaining about something in
loop.c,
Yes. Anything but the filesystem itself and the generic read/write path is not supposed to use address space operations directly.
Quoted 5 lines
Quoted 2 lines
Note that there is a more severe bug in
loop.c: it's abuse ofdo_generic_file_read.Could you please elaborate on this and give an example where
it return incorrect data, deadlock, generate a kernel oops, etc.?
Depending on the filesystem implementation _anything_ may happen. With current intree filesystems the only real life problem is that it doesn't work on certain filesystems. I think at least the network filesystems might be oopsable with some preparation.