Date: Tue, 7 May 2002 16:02:25 -0600 From: "Long, Scott" <Scott_Long@btc.adaptec.com> To: "'Riccardo Torrini'" <riccardo@torrini.org>, freebsd-current@freebsd.org Subject: RE: strange UDF behaviour (bug ?) Message-ID: <2C7CBDC6EA58D6119E4A00065B3A24CB046328@btcexc01.btc.adaptec.com>
next in thread | raw e-mail | index | archive | help
> I played a bit with mount_udf, and I have a question (or a bug > report ?). It worked from the technical view (mount_udf can > mount an InCD disk made at work) and ls/cd can walk on fs but > if a try to copy a file from CD to HD I obtain a 'correct' size > file completely filled with NULLs. > > Only "cp" command seems to be affected, if I "cat" same file to > HD it will be copied correctly, even if I view images with xv > or use md5 or hd to compare them. Only cp differs... > > Is this a bug, a wanted design or a pilot error ? > I believe I fixed this recently. The problem was that udf_bmap() wasn't computing the volume offset, so anything that used mmap() was being pointed to bogus areas on the media. Try updating your sources, and contact me if it still doesn't work. Scott btw, good to know that someone is using this code! > > Here a little log to explain better: > > # mount -tudf /dev/acd0c /cdram > # cd /cdram > # ls -l IMG_0195.jpg > -rwxrwxrwx 1 root wheel 99359 Apr 28 15:37 IMG_0195.jpg > # hd IMG_0195.jpg | head -1 > 00000000 ff d8 ff e0 00 10 4a 46 49 46 00 01 00 01 00 96 > |......JFIF......| > > # cp IMG_0195.jpg /tmp/foobar.jpg > # md5 IMG_0195.jpg /tmp/foobar.jpg > MD5 (IMG_0195.jpg) = a4a45affe7e37d55329a2b78a6199023 > MD5 (/tmp/foobar.jpg) = 855f3a16b3fb31cba960e5e2820d959d > # ls -l /tmp/foobar.jpg > -rwxr-xr-x 1 riccardo wheel 99359 May 7 23:39 /tmp/foobar.jpg > # hd /tmp/foobar.jpg > 00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > |................| > * > 00018410 > > # cat IMG_0195.jpg > /tmp/foobar.jpg > # md5 /tmp/foobar.jpg > MD5 (/tmp/foobar.jpg) = a4a45affe7e37d55329a2b78a6199023 > # hd /tmp/foobar.jpg | head -1 > 00000000 ff d8 ff e0 00 10 4a 46 49 46 00 01 00 01 00 96 > |......JFIF......| > > > TIA, > Riccardo. > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2C7CBDC6EA58D6119E4A00065B3A24CB046328>