Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Sep 2017 14:54:50 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 222227] ZFS: Confusing error message when attempting to create zpool on too small media
Message-ID:  <bug-222227-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222227

            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@FreeBSD.org
          Reporter: marieheleneka@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 sy=
stem

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
=3D>  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

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



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