|
Lines 3791-3797
zfs_ioc_rename(zfs_cmd_t *zc)
Link Here
|
| 3791 |
if (strncmp(zc->zc_name, zc->zc_value, at - zc->zc_name + 1)) |
3791 |
if (strncmp(zc->zc_name, zc->zc_value, at - zc->zc_name + 1)) |
| 3792 |
return (SET_ERROR(EXDEV)); |
3792 |
return (SET_ERROR(EXDEV)); |
| 3793 |
*at = '\0'; |
3793 |
*at = '\0'; |
| 3794 |
if (zc->zc_objset_type == DMU_OST_ZFS && allow_mounted) { |
3794 |
if (zc->zc_objset_type == DMU_OST_ZFS && !allow_mounted) { |
| 3795 |
error = dmu_objset_find(zc->zc_name, |
3795 |
error = dmu_objset_find(zc->zc_name, |
| 3796 |
recursive_unmount, at + 1, |
3796 |
recursive_unmount, at + 1, |
| 3797 |
recursive ? DS_FIND_CHILDREN : 0); |
3797 |
recursive ? DS_FIND_CHILDREN : 0); |