Whamcloud - gitweb
LU-1842 quota: setup/shutdown qmt device
[fs/lustre-release.git] / lustre / utils / mount_utils_zfs.c
index d824306..88d7a0c 100644 (file)
@@ -616,6 +616,32 @@ int zfs_prepare_lustre(struct mkfs_opts *mop,
        return 0;
 }
 
+int zfs_tune_lustre(char *dev, struct mount_opts *mop)
+{
+       if (osd_check_zfs_setup() == 0)
+               return EINVAL;
+
+       return 0;
+}
+
+int zfs_label_lustre(struct mount_opts *mop)
+{
+       zfs_handle_t *zhp;
+       int ret;
+
+       if (osd_check_zfs_setup() == 0)
+               return EINVAL;
+
+       zhp = zfs_open(g_zfs, mop->mo_source, ZFS_TYPE_FILESYSTEM);
+       if (zhp == NULL)
+               return EINVAL;
+
+       ret = zfs_set_prop_str(zhp, LDD_SVNAME_PROP, mop->mo_ldd.ldd_svname);
+       zfs_close(zhp);
+
+       return ret;
+}
+
 int zfs_init(void)
 {
        int ret = 0;