Re: PROBLEM: Corrupt files with kernel 2.6.0_test11 and smb mounts

From: Ookhoi (ookhoi_at_humilis.net)
Date: 12/06/03

  • Next message: Ethan Weinstein: "Re: cdrecord hangs my computer"
    Date:	Sat, 6 Dec 2003 09:43:05 +0100
    To: Daniel Flinkmann <dflinkmann@gmx.de>
    
    

    Daniel Flinkmann wrote (ao):
    > > [1.] One line summary of the problem:
    > >
    > > 2.6.0test11 overwriting file on mounted smb volume causes corrupted files!
    > >
    > > [2.] Full description of the problem/report:
    > >
    > > When I log into a smb mounted directory and I overwrite a file with
    > > a file which has smaller amount of bytes its corrupting the data.
    > >
    > > Easy way to show this is following:
    > >
    > > cd onto a smbfs mounted dir.
    > >
    > > ># echo test1234567890 >test.txt
    > > ># cat test.txt
    > > test1234567890
    > > ># echo hi! >test.txt
    > > ># cat test.txt
    > > hi!
    > > 1234567890
    > > >#
    > >
    > > As you can see the file is not overwritten as it should be.
    >
    > Ookhoi reported the same Problem with 2.6.0_test9 in the Samba Group:
    > http://lists.samba.org/archive/samba-technical/2003-November/032847.html

    That should be:
    http://lists.samba.org/archive/samba-technical/2003-November/032845.html

    > This could also be a Memorymanagement problem because the filesystem is
    > always breaking the last block, which is handled different to the other
    > blocks.

    Could this be the answer to the problem?
    http://www.ussg.iu.edu/hypermail/linux/kernel/0312.0/0647.html

    I don't have access to the setup anymore, but maybe it helps you.
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Ethan Weinstein: "Re: cdrecord hangs my computer"

    Relevant Pages

    • Re: setproctitle
      ... Hi Robert:) ... (e.g. wouldn't I have to have access to overwrite ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: cdrecording status
      ... > such I damn hope that DVD+RW manufacturers keep in mind that a byte position ... IIRC, it's overwrite count is 100,000. ... Lab tests show that use of micro$oft causes cancer in lab animals - ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • Re: EXT3: problem with copy_from_user inside a transaction
      ... On Fri, 2004-09-03 at 09:57, Andrey Savochkin wrote: ... We've copied data in that isn't reflected on disk. ... It isn't a horribly difficult case, we just need to overwrite the data ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: raid 1 - automatic repair possible?
      ... > every time the raid determines that a sector cannot ... > be read it could at least try to overwrite the bad are ... SUSE LINUX Products GmbH - A Novell Business ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)