[PATCH] Fix NTFS oops / panic / reboot extending MFT

Steve Dodd (dirk@loth.demon.co.uk)
Sun, 18 Apr 1999 20:02:22 +0100


On Sat, Apr 17, 1999 at 12:40:34PM -0500, Bill Priest wrote:

> I as trying to sudo cp a 2.5M tar file from a linux ext2 partition to a
> ntfs drive that was mounted and received the subject.

I think this should fix it (it seems that dereferencing an uninitialised
function pointer doesn't always work ;)

Alan and/or Linus, can you apply this please?

--- linux.old/fs/ntfs/inode.c Sun Apr 18 19:57:09 1999
+++ linux/fs/ntfs/inode.c Sun Apr 18 19:36:09 1999
@@ -150,6 +150,8 @@
ntfs_insert_fixups(buf,vol->blocksize);
io.param=buf;
io.size=vol->mft_recordsize;
+ io.fn_put = ntfs_put;
+ io.fn_get = ntfs_get;
error=ntfs_write_attr(vol->mft_ino,vol->at_data,0,
(rcount-1)*vol->mft_recordsize,&io);
if(error)return error;

S.

-- 
"I decry the current tendency to seek patents on algorithms.  There are
better ways to earn a living than to prevent other people from making use of
one's contributions to computer science."  -- Donald E. Knuth, TAoCP vol 3

- 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.tux.org/lkml/