From owner-freebsd-current Mon Mar 2 14:15:34 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA28784 for freebsd-current-outgoing; Mon, 2 Mar 1998 14:15:34 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from mail.scsn.net (scsn.net [206.25.246.12]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA28769 for ; Mon, 2 Mar 1998 14:15:22 -0800 (PST) (envelope-from dmaddox@scsn.net) Received: from rhiannon.scsn.net ([208.133.153.64]) by mail.scsn.net (Post.Office MTA v3.1.2 release (PO205-101c) ID# 0-41950U6000L1100S0) with ESMTP id AAA175 for ; Mon, 2 Mar 1998 17:12:20 -0500 Received: (from root@localhost) by rhiannon.scsn.net (8.8.8/8.8.7) id RAA01167; Mon, 2 Mar 1998 17:15:44 -0500 (EST) (envelope-from root) Message-ID: <19980302171544.21782@scsn.net> Date: Mon, 2 Mar 1998 17:15:44 -0500 From: dmaddox@scsn.net (Donald J. Maddox) To: current@FreeBSD.ORG Subject: MSDOSFS Broken(?) Reply-To: dmaddox@scsn.net Mail-Followup-To: current@FreeBSD.ORG Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG After a 'make world' and a new kernel from sources cvsupped ~10PM EST last night, it seems that msdosfs is broken... Files that are known to be good appear corrupt when accessed from FBSD. This seems to characterize the problem: # ls -l /dos/c/MISC/STAC.DOC -rwxr-xr-x 1 root wheel 72417 Jan 30 16:22 /dos/c/MISC/STAC.DOC # file /dos/c/MISC/STAC.DOC /dos/c/MISC/STAC.DOC: Rich Text Format data, version 1, ANSI # cat /dos/c/MISC/STAC.DOC cat: /dos/c/MISC/STAC.DOC: Argument list too long Compiled 'cat' with '-g', then: >cat> gdb ./cat GDB is free software and you are welcome to distribute copies of it under certain conditions; type "show copying" to see the conditions. There is absolutely no warranty for GDB; type "show warranty" for details. GDB 4.16 (i386-unknown-freebsd), Copyright 1996 Free Software Foundation, Inc... (gdb) set args /dos/c/MISC/STAC.DOC (gdb) break raw_cat Breakpoint 1 at 0x17a8: file /usr/src/bin/cat/cat.c, line 245. (gdb) r Starting program: /usr/obj/usr/src/bin/cat/./cat /dos/c/MISC/STAC.DOC Breakpoint 1, raw_cat (rfd=3) at /usr/src/bin/cat/cat.c:245 245 wfd = fileno(stdout); (gdb) s 246 if (buf == NULL) { (gdb) 247 if (fstat(wfd, &sbuf)) (gdb) 249 bsize = MAX(sbuf.st_blksize, 1024); (gdb) 250 if ((buf = malloc((u_int)bsize)) == NULL) (gdb) 253 while ((nr = read(rfd, buf, bsize)) > 0) (gdb) 257 if (nr < 0) { (gdb) 258 warn("%s", filename); (gdb) cat: /dos/c/MISC/STAC.DOC: Argument list too long 259 rval = 1; (gdb) (gdb) p sbuf $1 = {st_dev = 8, st_ino = 6023, st_mode = 8592, st_nlink = 1, st_uid = 0, st_gid = 4, st_rdev = 1284, st_atimespec = {tv_sec = 888876298, tv_nsec = 0}, st_mtimespec = { tv_sec = 888876298, tv_nsec = 0}, st_ctimespec = {tv_sec = 888876298, tv_nsec = 0}, st_size = 0x0000000000000000, st_blocks = 0x0000000000000000, st_blksize = 65536, st_flags = 0, st_gen = 483370200, st_lspare = -266130324, st_qspare = { 0x00000005f2c54d00, 0xf01f996800000000}} (gdb) q What's wrong with this picture? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message