device is not there until reboot root@ztest:~ # zfs snapshot ziege/targets/test1/c@140118-0446 root@ztest:~ # zfs clone -p ziege/targets/test1/c@140118-0446 ziege/targets/test1/pc1-c-140118-0446 root@ztest:~ # zfs clone -p ziege/targets/test1/c@140118-0446 ziege/targets/test1/pc2-c-140118-0446 root@ztest:~ # zfs list NAME USED AVAIL REFER MOUNTPOINT ziege 100G 16.8G 31K none ziege/targets 100G 16.8G 31K none ziege/targets/test1 100G 16.8G 31K none ziege/targets/test1/c 100G 99.3G 17.8G - ziege/targets/test1/c@140118-0446 0 - 17.8G - ziege/targets/test1/pc1-c-140118-0446 1K 16.8G 17.8G - ziege/targets/test1/pc2-c-140118-0446 1K 16.8G 17.8G - root@ztest:~ # ls -l /dev/zvol/ziege/targets/test1/ total 0 crw-r----- 1 root operator 0x88 Jan 18 11:42 c crw-r----- 1 root operator 0x9e Jan 18 04:46 c@140118-0446 crw-r----- 1 root operator 0x9f Jan 18 04:46 c@140118-0446s1 crw-r----- 1 root operator 0xa0 Jan 18 04:46 c@140118-0446s2 Fix: reboot... but this is gonna cause problems How-To-Repeat: root@ztest:~ # zfs snapshot ziege/targets/test1/c@140118-0446 root@ztest:~ # zfs clone -p ziege/targets/test1/c@140118-0446 ziege/targets/test1/pc1-c-140118-0446 root@ztest:~ # zfs clone -p ziege/targets/test1/c@140118-0446 ziege/targets ls -l /dev/zvol/ziege/targets/test1/ (device not there)
Responsible Changed From-To: freebsd-bugs->freebsd-fs Over to maintainer(s).
It looks like this might relate back to this checkin: = https://github.com/joyent/illumos-joyent/commit/3b2aab18808792cbd248a12f1e= df139b89833c13 -- Steve Modica CTO - Small Tree Communications www.small-tree.com
I looked for differences between the illumos and FreeBSD code and found that zfs_ioc_create() has this: 3310#ifdef __FreeBSD__ 3311 if (error == 0 && type == DMU_OST_ZVOL) 3312 zvol_create_minors(fsname); 3313#endif It seems like similar code would be needed in zfs_ioc_clone(), but isn't there. The "type" (ZVOL vs ZPL filesystem) isn't as immediately available in zfs_ioc_clone(), so it might be a little tricker to add the code to zfs_ioc_clone(). --matt
FYI, this is a dupe of kern/178999. http://www.freebsd.org/cgi/query-pr.cgi?pr=178999
Responsible Changed From-To: freebsd-fs->smh I'll take it
For bugs matching the following criteria: Status: In Progress Changed: (is less than) 2014-06-01 Reset to default assignee and clear in-progress tags. Mail being skipped