On Tue, 23 Mar 2004, Anton Altaparmakov wrote:
> > 3) There are LFS (large file support = 2 GB+) problems with smbfs.
> > Details are here:
> >
> > http://sf.net/forum/forum.php?thread_id=1043909&forum_id=44085
> >
> > Kernel 2.6 and 2.4.25 should support smbfs LFS but it seems it's
> > buggy. Apparently it sends a slightly wrong request then XP or samba
> > 3.0 do create (ftruncate) the large file but they answer with "wrong
> > parameters" what smbfs interprets as EFBIG (File too large).
> >
> > I would really appreciate if other people could also confirm this
> > kernel bug (smbfs maintainer didn't answer). Just try to ntfsclone
> > a 2GB+ NTFS image to a Windows share (using NTFS on the remote
> > Windows is a must) or a Samba 3.0 share using 2.4.25 or 2.6 kernel
> > (using e.g. ntfsclone --metadata -o remote.img /dev/hda1 is also ok)
>
> Sorry but I don't have any NTFS partitions of that size so I can't try
> it. )-:
Of course you do have:
# create a 5GB sparse NTFS image
touch 5gb-ntfs.img
mkntfs -Ff 5gb-ntfs.img 10000000
# create another 10 GB sparse image using a unix fs
dd if=/dev/zero of=10gb-unixfs.img bs=1024 count=1 seek=10000000
mkfs.{xfs,ext2,ext3,jfs,reiserfs,reiser4}
# loop mount the 10gb-unixfs image. This will be exported by samba
mount -o loop 10gb-unixfs.img /mnt/samba-export
configure /mnt/samba-export to be exported by samba
start samba 3.0+
# mount the samba share
mount -t smbfs 127.0.0.1:/samba-export /mnt/samba-remote
# do the test
ntfsclone --metadata -o /mnt/samba-remote/ntfs.img 5gb-ntfs.img
The 5 GB sparse file gets created on the remote share but the kernel says
it couldn't create it.
Well, this was the harder way to test smbfs LFS ;) A much easier is like
1) mount an Windows share having NTFS or a samba 3.0+ share
2) dd if=/dev/zero of=/mnt/remore-share/foo bs=1024 count=1 seek=10000000
Please remember, you need at least 2.4.25 or 2.6 kernel. Older doesn't
have smbfs LFS support. And apparently these newer neither.
Cheers,
Szaka
|