kern/162905: -E flag in newfs has no effect
Robert Millan
rmh at debian.org
Sun Nov 27 17:00:22 UTC 2011
>Number: 162905
>Category: kern
>Synopsis: -E flag in newfs has no effect
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Nov 27 17:00:21 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Robert Millan
>Release: FreeBSD 9-STABLE
>Organization:
>Environment:
>Description:
-E flag in newfs doesn't erase the whole device. For one thing, it returns immediately (which is unexpected since DIOCGDELETE ioctl is a blocking call). On the other hand, pre-existing filesystems continue to be usable:
# zpool create -m none -f test /dev/ada1s1
# zpool export test
# newfs -E /dev/ada1s1
[...]
Erasing sectors [128...16773119]
[...]
# zpool import test
#
>How-To-Repeat:
>Fix:
I don't know the fix, but it seems most likely a kernel bug (I've verified that DIOCGDELETE ioctl is indeed being called).
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list