FreeBSD 10 and zfsd

Alan Somers asomers at
Tue Aug 26 15:21:00 UTC 2014

Status update below:

> The projects/zfsd project branch is up to date.  Merging it to CURRENT
> is blocked on these tasks.
> 1) (The biggie) We must resolve the issue with multiple geom opens.
> Geom tries to prevent any two consumers from simultaneously opening
> the same provider.  This is why, for example, you can't do dd
> if=/dev/zero of=/dev/ada0 if your ada0 has a mounted file system.
> However, ZFS internally opens spare devices multiple times.  The only
> way that geom will allow that is if ZFS opens devices non-exclusively.
> That means that you will lose your protection.  Fixing this correctly
> requires deep changes to ZFS to remove the multiple opens.
> 2) Need to merge in zfsd's functional tests.  I'm currently working on
> this issue as time allows.

Merged into the projects/zfsd/head branch by change 270604.  Merging
to head is blocked by three issues:
a) The atf-ksh93 hack.  The correct solution is to modify all the test
programs (not the test cases) so they can run under /bin/sh.  That
will take some effort.
b) Some test cases reference Spectra Logic internal bug numbers.  We
need to file FreeBSD PRs for all of them and change the references.
c) It uses some ATF config variables that are not yet documented in tests(7).

> 3) It needs a manpage.
> 4) Various bug fixes need to be merged to the kernel and to LibZFS.
> Coordinating with Illumos makes that process slow.  will@ is working
> on it as time allows.

gibbs@ has been making progress here, with mahrens@ providing code
review.  But it is still slow.

> 5) libdevctl needs to be made private
> 6) The sequential packet feature added to devd in the zfsd project
> branch at revision r266519 must be merged to head.  It's currently
> waiting for review from imp@ and ian at .

Merged by r270004.

To answer Mark's question: no, we can't finish all of this in time for
10.1.  Sorry.


More information about the freebsd-current mailing list