From owner-freebsd-current Tue May 7 14:49:29 2002 Delivered-To: freebsd-current@freebsd.org Received: from mail.dada.it (mail3.dada.it [195.110.96.70]) by hub.freebsd.org (Postfix) with SMTP id C2A5037B408 for ; Tue, 7 May 2002 14:49:19 -0700 (PDT) Received: (qmail 9845 invoked from network); 7 May 2002 21:49:11 -0000 Received: from unknown (HELO torrini.org) (195.110.114.101) by mail.dada.it with SMTP; 7 May 2002 21:49:11 -0000 Received: from trudy.home.torrini.org (localhost.home.torrini.org [127.0.0.1]) by torrini.org (8.12.3/8.12.3) with ESMTP id g47LnGeQ055506 for ; Tue, 7 May 2002 23:49:17 +0200 (CEST) (envelope-from riccardo@trudy.home.torrini.org) Received: (from riccardo@localhost) by trudy.home.torrini.org (8.12.3/8.12.2/Submit) id g47LnGpm055505 for freebsd-current@FreeBSD.ORG; Tue, 7 May 2002 23:49:16 +0200 (CEST) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Date: Tue, 07 May 2002 23:49:15 +0200 (CEST) From: Riccardo Torrini To: freebsd-current@FreeBSD.ORG Subject: strange UDF behaviour (bug ?) Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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