From owner-freebsd-bugs Wed Jun 7 0:10:12 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 849C237B6AE for ; Wed, 7 Jun 2000 00:10:05 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id AAA41129; Wed, 7 Jun 2000 00:10:05 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: by hub.freebsd.org (Postfix, from userid 32767) id 6C64437B8C4; Wed, 7 Jun 2000 00:00:57 -0700 (PDT) Message-Id: <20000607070057.6C64437B8C4@hub.freebsd.org> Date: Wed, 7 Jun 2000 00:00:57 -0700 (PDT) From: phiber@phiber.com To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: misc/19086: pseudo-device vn doesn't work properly with msdos filesystems Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 19086 >Category: misc >Synopsis: pseudo-device vn doesn't work properly with msdos filesystems >Confidential: no >Severity: non-critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jun 07 00:10:04 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Mark Abene >Release: 4.0-RELEASE/Alpha >Organization: Crossbar Security, Inc. >Environment: FreeBSD ziggurat.phiber.com 4.0-RELEASE FreeBSD 4.0-RELEASE #11: Wed Jun 7 00:32:12 EDT 2000 phiber@ziggurat.phiber.com:/usr/src/sys/compile/ZIGGURAT alpha >Description: When mapping an msdos disk image to a vn device and mounting it, trying to read or write more than exactly 1024 bytes returns an "Argument list too long" error and fails. This problem does not exist on FreeBSD 3.4. Nor is there a problem when working with disklabels and ffs filesystems. It only seems to affect msdos filesystems. It also makes no difference whether vn is compiled into the kernel or loaded as a module. >How-To-Repeat: dd if=/dev/zero of=/tmp/img bs=1k count=1440 vnconfig vn0c /tmp/img newfs_msdos -f 1440 /dev/vn0c mount -tmsdos /dev/vn0c /mnt cp some_file_bigger_than_1K /mnt cp: some_file_bigger_than_1K: Argument list too long The file gets created with a size of zero bytes, but df shows the actual space was used, and is now unrecoverable. I also see the problem with actual disk images that were dd'ed directly from dos floppies. Trying to cat a file also stops with the above error message after reading 1024 bytes. >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message