Re: ntfs and sendfile problem (corrupted data)

2001-12-31 Thread Sheldon Hearn
On Sun, 30 Dec 2001 12:19:51 PST, Matthew Dillon wrote: Well, we have a problem here. smbfs is allowing VOBJBUF to be set on its vnodes. This creates a backing VM object that smbfs never uses and makes sendfile() believe that it can do UIO_NOCOPY uio's on smbfs vnodes.

Re: ntfs and sendfile problem (corrupted data)

2001-12-31 Thread Michal Mertl
On Sun, 30 Dec 2001, Terry Lambert wrote: Michal Mertl wrote: I wrote about the issue once before but now I know more about the problem. I have ntfs partition mounted ro on current. I can read from it without problems. But I noticed I get corrupted data (the corrupted file has

Re: ntfs and sendfile problem (corrupted data)

2001-12-31 Thread Michal Mertl
On Mon, 31 Dec 2001, Michal Mertl wrote: Sorry to bloat the list but I forgot to mention that the panics occur when I actually try to read from ntfs partition (after appliing pach from previous email). cd works ok but ls panics the kernel. -- Michal Mertl [EMAIL PROTECTED] To Unsubscribe:

Re: ntfs and sendfile problem (corrupted data)

2001-12-31 Thread Matthew Dillon
:On Mon, 31 Dec 2001, Michal Mertl wrote: : :Sorry to bloat the list but I forgot to mention that the panics occur when :I actually try to read from ntfs partition (after appliing pach from :previous email). cd works ok but ls panics the kernel. : : :-- :Michal Mertl :[EMAIL PROTECTED]

Re: ntfs and sendfile problem (corrupted data)

2001-12-31 Thread Terry Lambert
Michal Mertl wrote: Sorry to bloat the list but I forgot to mention that the panics occur when I actually try to read from ntfs partition (after appliing pach from previous email). cd works ok but ls panics the kernel. You can't use the patch provided on NTFS. It's doesn't make fake backing

Re: ntfs and sendfile problem (corrupted data)

2001-12-30 Thread Sheldon Hearn
On Sun, 30 Dec 2001 01:53:08 +0100, Michal Mertl wrote: I have ntfs partition mounted ro on current. I can read from it without problems. But I noticed I get corrupted data (the corrupted file has right size but contains mostly zeros) when using ftpd to read them. I'm pretty sure the

Re: ntfs and sendfile problem (corrupted data)

2001-12-30 Thread Michal Mertl
On Sun, 30 Dec 2001, Sheldon Hearn wrote: On Sun, 30 Dec 2001 01:53:08 +0100, Michal Mertl wrote: I have ntfs partition mounted ro on current. I can read from it without problems. But I noticed I get corrupted data (the corrupted file has right size but contains mostly zeros) when

Re: ntfs and sendfile problem (corrupted data)

2001-12-30 Thread Sheldon Hearn
On Sun, 30 Dec 2001 15:47:45 +0100, Michal Mertl wrote: I did use the goto oldway; and the problem went away. I tried to look at /sys/kern/uipc_syscalls.c sendfile implementation but it is too complex for me :-(. I've added your feedback to the audit trail of PR bin/31692, thanks. I

Re: ntfs and sendfile problem (corrupted data)

2001-12-30 Thread David Malone
On Sun, Dec 30, 2001 at 05:01:41PM +0200, Sheldon Hearn wrote: I tried ktrace on ftpd but only saw the call to sendfile(2). If you give me some guidance I can try to look into problem deeper. I don't have any experience in kernel debugging but would like to learn it. No idea. I was

[PATCH] Re: ntfs and sendfile problem (corrupted data)

2001-12-30 Thread Justin Erenkrantz
On Sun, Dec 30, 2001 at 05:01:41PM +0200, Sheldon Hearn wrote: On Sun, 30 Dec 2001 15:47:45 +0100, Michal Mertl wrote: I did use the goto oldway; and the problem went away. I tried to look at /sys/kern/uipc_syscalls.c sendfile implementation but it is too complex for me :-(. I've

Re: ntfs and sendfile problem (corrupted data)

2001-12-30 Thread Matthew Dillon
Well, we have a problem here. smbfs is allowing VOBJBUF to be set on its vnodes. This creates a backing VM object that smbfs never uses and makes sendfile() believe that it can do UIO_NOCOPY uio's on smbfs vnodes. Michal, please try the following kernel patch and test it

Re: ntfs and sendfile problem (corrupted data)

2001-12-30 Thread Matthew Dillon
Oops, sorry, that patch was for smbfs on -stable. Not -current. ntfs has a similar problem. It implements VOP_BMAP but fakes it, and ntfs_read() doesn't *USE* the buffer cache, so again sendfile() believes that a UIO_NOCOPY read will work when it won't. And, again there is

Re: ntfs and sendfile problem (corrupted data)

2001-12-30 Thread Dominic Marks
On Sunday 30 December 2001 5:27 pm, David Malone wrote: On Sun, Dec 30, 2001 at 05:01:41PM +0200, Sheldon Hearn wrote: I tried ktrace on ftpd but only saw the call to sendfile(2). If you give me some guidance I can try to look into problem deeper. I don't have any experience in kernel

Re: ntfs and sendfile problem (corrupted data)

2001-12-30 Thread Terry Lambert
Michal Mertl wrote: I wrote about the issue once before but now I know more about the problem. I have ntfs partition mounted ro on current. I can read from it without problems. But I noticed I get corrupted data (the corrupted file has right size but contains mostly zeros) when using

Re: ntfs and sendfile problem (corrupted data)

2001-12-30 Thread Terry Lambert
Sheldon Hearn wrote: On Sun, 30 Dec 2001 01:53:08 +0100, Michal Mertl wrote: I have ntfs partition mounted ro on current. I can read from it without problems. But I noticed I get corrupted data (the corrupted file has right size but contains mostly zeros) when using ftpd to read them.

ntfs and sendfile problem (corrupted data)

2001-12-29 Thread Michal Mertl
I wrote about the issue once before but now I know more about the problem. I have ntfs partition mounted ro on current. I can read from it without problems. But I noticed I get corrupted data (the corrupted file has right size but contains mostly zeros) when using ftpd to read them. I'm pretty