MFC r276063:
Standardise on illumos for #ifdef's in zvol.c MFC r276066: Refactor zvol locking to minimise diff with upstream MFC r276069: Fix panic when resizing ZFS zvol's Sponsored by: Multiplay
This commit is contained in:
parent
48282fa7cc
commit
13bbed0129
@ -43,7 +43,7 @@ extern void zvol_create_cb(objset_t *os, void *arg, cred_t *cr, dmu_tx_t *tx);
|
||||
extern int zvol_create_minor(const char *);
|
||||
extern int zvol_remove_minor(const char *);
|
||||
extern void zvol_remove_minors(const char *);
|
||||
extern int zvol_set_volsize(const char *, major_t, uint64_t);
|
||||
extern int zvol_set_volsize(const char *, uint64_t);
|
||||
|
||||
#ifdef sun
|
||||
extern int zvol_open(dev_t *devp, int flag, int otyp, cred_t *cr);
|
||||
|
@ -2483,8 +2483,7 @@ zfs_prop_set_special(const char *dsname, zprop_source_t source,
|
||||
err = dsl_dataset_set_refreservation(dsname, source, intval);
|
||||
break;
|
||||
case ZFS_PROP_VOLSIZE:
|
||||
err = zvol_set_volsize(dsname, ddi_driver_major(zfs_dip),
|
||||
intval);
|
||||
err = zvol_set_volsize(dsname, intval);
|
||||
break;
|
||||
case ZFS_PROP_VERSION:
|
||||
{
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user