From owner-freebsd-current Sat Mar 15 20:30: 2 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B98BB37B401 for ; Sat, 15 Mar 2003 20:29:58 -0800 (PST) Received: from magic.adaptec.com (magic-mail.adaptec.com [208.236.45.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id E0D7643FCB for ; Sat, 15 Mar 2003 20:29:57 -0800 (PST) (envelope-from scott_long@btc.adaptec.com) Received: from redfish.adaptec.com (redfish.adaptec.com [162.62.50.11]) by magic.adaptec.com (8.11.6/8.11.6) with ESMTP id h2G4TMl25475; Sat, 15 Mar 2003 20:29:22 -0800 Received: from btc.btc.adaptec.com (btc.btc.adaptec.com [10.100.0.52]) by redfish.adaptec.com (8.8.8+Sun/8.8.8) with ESMTP id UAA22839; Sat, 15 Mar 2003 20:29:31 -0800 (PST) Received: from btc.adaptec.com (hollin [10.100.253.56]) by btc.btc.adaptec.com (8.8.8+Sun/8.8.8) with ESMTP id VAA03147; Sat, 15 Mar 2003 21:29:26 -0700 (MST) Message-ID: <3E73FD9C.8040004@btc.adaptec.com> Date: Sat, 15 Mar 2003 21:29:16 -0700 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.2.1) Gecko/20030206 X-Accept-Language: en-us, en MIME-Version: 1.0 To: FUJITA Kazutoshi Cc: andy@siliconlandmark.com, freebsd-current@freebsd.org Subject: Re: UDF: bad file descriptor References: <20030316.052351.74752614.fujita@soum.co.jp> <20030316.060650.71086272.fujita@soum.co.jp> <20030315210054.U36274@alpha.siliconlandmark.com> <20030316.131536.74752056.fujita@soum.co.jp> In-Reply-To: <20030316.131536.74752056.fujita@soum.co.jp> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 Hi, Sorry for neglecting UDF for so long. Regarding this problem, what program was used to generate the UDF filesystem on the disk? If the disk doesn't have much data on it, would it be possible to 'dd' an image of the disk to a file and send me the file? Scott FUJITA Kazutoshi wrote: > From: Andre Guibert de Bruet > Subject: Re: UDF: bad file descriptor > Date: Sat, 15 Mar 2003 21:09:55 -0500 (EST) > Message-ID: <20030315210054.U36274@alpha.siliconlandmark.com> > >>># /bin/ls -l >>>ls: VR_MOVIE.VRO: Bad file descriptor >>>total 111 >>>drw-rw-rw- 1 root wheel 2048 Mar 12 13:33 . >>>drw-rw-rw- 4 root wheel 2048 Mar 16 18:00 .. >>>-rw-rw-rw- 1 root wheel 56980 Mar 16 18:01 VR_MANGR.BUP >>>-rw-rw-rw- 1 root wheel 56980 Mar 16 18:01 VR_MANGR.IFO >> >>Sounds like the lstat on VR_MOVIE.VRO is failing. Does 'truss ls -l' >>display anything relevant? > > > It seems there is no relevant. > > # truss /bin/ls -l > ioctl(1,TIOCGETA,0xbfbff3b0) = 0 (0x0) > ioctl(1,TIOCGWINSZ,0xbfbff414) = 0 (0x0) > getuid() = 0 (0x0) > readlink("/etc/malloc.conf",0xbfbff300,63) ERR#2 'No such file or directory' > issetugid() = 0 (0x0) > getuid() = 0 (0x0) > mmap(0x0,4096,0x3,0x1002,-1,0x0) = 671887360 (0x280c3000) > break(0x80d5000) = 0 (0x0) > break(0x80d6000) = 0 (0x0) > break(0x80d7000) = 0 (0x0) > break(0x80d8000) = 0 (0x0) > lstat(".",0x80d7148) = 0 (0x0) > open(".",0x0,00) = 3 (0x3) > fchdir(0x3) = 0 (0x0) > open(".",0x0,00) = 4 (0x4) > stat(".",0xbfbff2c0) = 0 (0x0) > open(".",0x4,00) = 5 (0x5) > fstat(5,0xbfbff2c0) = 0 (0x0) > fcntl(0x5,0x2,0x1) = 0 (0x0) > __sysctl(0xbfbff170,0x2,0x80cf4dc,0xbfbff16c,0x0,0x0) = 0 (0x0) > fstatfs(0x5,0xbfbff1c0) = 0 (0x0) > break(0x80d9000) = 0 (0x0) > fstat(5,0xbfbff2c0) = 0 (0x0) > fchdir(0x5) = 0 (0x0) > getdirentries(0x5,0x80d8000,0x1000,0x80d5054) = 96 (0x60) > lstat(".",0x80d7248) = 0 (0x0) > lstat("..",0x80d7348) = 0 (0x0) > lstat("VR_MOVIE.VRO",0x80d7448) ERR#9 'Bad file descriptor' > lstat("VR_MANGR.BUP",0x80d7548) = 0 (0x0) > lstat("VR_MANGR.IFO",0x80d7648) = 0 (0x0) > getdirentries(0x5,0x80d8000,0x1000,0x80d5054) = 0 (0x0) > lseek(5,0x0,0) = 0 (0x0) > close(5) = 0 (0x0) > fchdir(0x3) = 0 (0x0) > fchdir(0x4) = 0 (0x0) > close(4) = 0 (0x0) > stat("/etc/nsswitch.conf",0xbfbfed60) = 0 (0x0) > open("/etc/nsswitch.conf",0x0,0666) = 4 (0x4) > break(0x80da000) = 0 (0x0) > ioctl(4,TIOCGETA,0xbfbfec60) ERR#25 'Inappropriate ioctl for device' > fstat(4,0xbfbfebb0) = 0 (0x0) > break(0x80de000) = 0 (0x0) > read(0x4,0x80da000,0x4000) = 0 (0x0) > ioctl(4,TIOCGETA,0xbfbfec40) ERR#25 'Inappropriate ioctl for device' > close(4) = 0 (0x0) > geteuid() = 0 (0x0) > stat("/etc/spwd.db",0xbfbfeca0) = 0 (0x0) > open("/etc/spwd.db",0x0,00) = 4 (0x4) > fcntl(0x4,0x2,0x1) = 0 (0x0) > read(0x4,0x80d8200,0x104) = 260 (0x104) > lseek(4,0x5000,0) = 20480 (0x5000) > read(0x4,0x80da000,0x1000) = 4096 (0x1000) > lseek(4,0x4000,0) = 16384 (0x4000) > read(0x4,0x80db000,0x1000) = 4096 (0x1000) > open("/etc/group",0x0,0666) = 5 (0x5) > fstat(5,0xbfbfec80) = 0 (0x0) > break(0x80e2000) = 0 (0x0) > lseek(5,0x0,1) = 0 (0x0) > lseek(5,0x0,0) = 0 (0x0) > stat("/etc/nsswitch.conf",0xbfbfed40) = 0 (0x0) > read(0x5,0x80de000,0x4000) = 378 (0x17a) > ls: write(2,0xbfbfe4d0,4) = 4 (0x4) > VR_MOVIE.VRO: Bad file descriptorwrite(2,0xbfbfe4f0,33) = 33 (0x21) > > write(2,0x80c4733,1) = 1 (0x1) > fstat(1,0xbfbfe850) = 0 (0x0) > ioctl(1,TIOCGETA,0xbfbfe890) = 0 (0x0) > total 111 > write(1,0x80dc000,10) = 10 (0xa) > pathconf(0xbfbfe9d0,0x3b) ERR#22 'Invalid argument' > gettimeofday(0xbfbfed78,0x0) = 0 (0x0) > access("/etc/localtime",4) = 0 (0x0) > open("/etc/localtime",0x0,00) = 6 (0x6) > fstat(6,0xbfbfecc0) = 0 (0x0) > read(0x6,0xbfbfc9a0,0x1f08) = 73 (0x49) > close(6) = 0 (0x0) > drw-rw-rw- 1 root wheel 2048 Mar 12 13:33 . > write(1,0x80dc000,48) = 48 (0x30) > drw-rw-rw- 4 root wheel 2048 Mar 16 18:00 .. > write(1,0x80dc000,49) = 49 (0x31) > -rw-rw-rw- 1 root wheel 56980 Mar 16 18:01 VR_MANGR.BUP > write(1,0x80dc000,59) = 59 (0x3b) > -rw-rw-rw- 1 root wheel 56980 Mar 16 18:01 VR_MANGR.IFO > write(1,0x80dc000,59) = 59 (0x3b) > exit(0x1) > process exit, rval = 256 > > > Regards, > > 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