| Summary: | [zfs] ZVOLs not appearing in /dev/zvol | ||
|---|---|---|---|
| Product: | Base System | Reporter: | Aldo <rimbalza> |
| Component: | kern | Assignee: | Andriy Gapon <avg> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | 9.0-RELEASE | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
Aldo
2012-04-18 17:30:03 UTC
Responsible Changed From-To: freebsd-amd64->freebsd-fs reclassify. Please try the following patch: --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c @@ -3824,6 +3824,11 @@ zfs_ioc_recv(zfs_cmd_t *zc) error = 1; } #endif + +#ifdef __FreeBSD__ + if (error == 0) + zvol_create_minors(tofs); +#endif /* * On error, restore the original props. */ -- Andriy Gapon On Fri, Nov 23, 2012 at 12:22 PM, Andriy Gapon <avg@freebsd.org> wrote: > > Please try the following patch: > > --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c > +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c > @@ -3824,6 +3824,11 @@ zfs_ioc_recv(zfs_cmd_t *zc) > error = 1; > } > #endif > + > +#ifdef __FreeBSD__ > + if (error == 0) > + zvol_create_minors(tofs); > +#endif > /* > * On error, restore the original props. > */ > > -- > Andriy Gapon > Thanks :) The patch did not apply on new checkout of 9-stable, but I added the code via editor. Svn thinks this of my edit: Index: sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c =================================================================== --- sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c (revision 243443) +++ sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c (working copy) @@ -3803,6 +3803,11 @@ error = 1; } #endif + +#ifdef __FreeBSD__ + if (error == 0) + zvol_create_minors(tofs); +#endif /* * On error, restore the original props. */ Before receive: $ ls /dev/zvol/data/ usb usb@2 usb@2s1 usbs1 After receive: $ ls /dev/zvol/data/ master master@1p1 master@1p3 masterp2 usb usb@2s1 master@1 master@1p2 masterp1 masterp3 usb@2 usbs1 which is what I expected. Great work :) Best regards Andreas Responsible Changed From-To: freebsd-fs->avg I am handling this. State Changed From-To: open->patched Should be fixed in head. State Changed From-To: patched->closed Should be fixed now. |