Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 07 May 2002 23:49:15 +0200 (CEST)
From:      Riccardo Torrini <riccardo@torrini.org>
To:        freebsd-current@FreeBSD.ORG
Subject:   strange UDF behaviour (bug ?)
Message-ID:  <XFMail.20020507234915.riccardo@torrini.org>

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 ?


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20020507234915.riccardo>