loop.c

Peter J. Braam (braam@cs.cmu.edu)
Sun, 2 Aug 1998 22:19:32 -0400 (EDT)


Alan, Linus,

I've had to patch loop.c:

loop_set_fd with the following + marked lines. If not, the writecount on
the inode goes negative, and you won't be able to write to the file
anymore - have I been stupid or is this the real fix?

Do you want a real patch, or is this ok?

- Peter -

-------------------------------------
lo->lo_backing_file->f_op = file->f_op;
lo->lo_backing_file->private_data =
file->private_data;
+ /* simulate get_write_access */
+ if (file->f_mode & FMODE_WRITE)
+ file->f_dentry->d_inode->i_writecount++;
error = 0;

---------------------------------------------

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html