mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 02:44:41 +03:00
OpenZFS 6052 - decouple lzc_create() from the implementation details
Authored by: Andriy Gapon <andriy.gapon@clusterhq.com> Reviewed by: Matthew Ahrens <mahrens@delphix.com> Approved by: Richard Lowe <richlowe@richlowe.net> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Ported-by: George Melikov mail@gmelikov.ru OpenZFS-issue: https://www.illumos.org/issues/6052 OpenZFS-commit: https://github.com/openzfs/openzfs/commit/26455f9 Closes #5622
This commit is contained in:
committed by
Brian Behlendorf
parent
f85c06bedf
commit
e67a7ffb5d
@@ -3224,7 +3224,7 @@ zfs_create(libzfs_handle_t *hdl, const char *path, zfs_type_t type,
|
||||
uint64_t blocksize = zfs_prop_default_numeric(ZFS_PROP_VOLBLOCKSIZE);
|
||||
char errbuf[1024];
|
||||
uint64_t zoned;
|
||||
dmu_objset_type_t ost;
|
||||
enum lzc_dataset_type ost;
|
||||
|
||||
(void) snprintf(errbuf, sizeof (errbuf), dgettext(TEXT_DOMAIN,
|
||||
"cannot create '%s'"), path);
|
||||
@@ -3251,9 +3251,9 @@ zfs_create(libzfs_handle_t *hdl, const char *path, zfs_type_t type,
|
||||
}
|
||||
|
||||
if (type == ZFS_TYPE_VOLUME)
|
||||
ost = DMU_OST_ZVOL;
|
||||
ost = LZC_DATSET_TYPE_ZVOL;
|
||||
else
|
||||
ost = DMU_OST_ZFS;
|
||||
ost = LZC_DATSET_TYPE_ZFS;
|
||||
|
||||
/* open zpool handle for prop validation */
|
||||
char pool_path[ZFS_MAX_DATASET_NAME_LEN];
|
||||
|
||||
Reference in New Issue
Block a user