[Bug 222227] ZFS: Confusing error message when attempting to create zpool on too small media

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Sep 11 14:54:51 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222227

            Bug ID: 222227
           Summary: ZFS: Confusing error message when attempting to create
                    zpool on too small media
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: marieheleneka at gmail.com

When attempting to create a zpool on a too small media (say, a 1.4MB 3.5"
floppy), the error message is "cannot create 'poolname': no such pool or
dataset"

I'd expect an error message along the lines of 'underlying block device too
small'.

Steps to reproduce:
1) Have a floppy or other ridiculously small r/w media accessible on the system

In this example, the floppy is /dev/da0.

2) Execute following commands to prepare media
# gpart create -s gpt da0
da0 created
# gpart add -t freebsd-zfs da0
da0p1 created
# gpart show da0
=>  40  2800  da0  GPT  (1.4M)
    40  2800    1  freebsd-zfs  (1.4M)

3) Attempt to create pool
# zpool create floppytest /dev/da0p1
cannot create 'floppytest': no such pool or dataset

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list