Skip site navigation (1)Skip section navigation (2)
Date:      Wed,  7 Jun 2000 00:00:57 -0700 (PDT)
From:      phiber@phiber.com
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/19086: pseudo-device vn doesn't work properly with msdos filesystems
Message-ID:  <20000607070057.6C64437B8C4@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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




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