git://git.camperquake.de
/
zfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Initial zio delay timing
[zfs.git]
/
lib
/
libzfs
/
libzfs_changelist.c
diff --git
a/lib/libzfs/libzfs_changelist.c
b/lib/libzfs/libzfs_changelist.c
index
4328d38
..
6f067d5
100644
(file)
--- a/
lib/libzfs/libzfs_changelist.c
+++ b/
lib/libzfs/libzfs_changelist.c
@@
-93,6
+93,7
@@
struct prop_changelist {
int
changelist_prefix(prop_changelist_t *clp)
{
int
changelist_prefix(prop_changelist_t *clp)
{
+#ifdef HAVE_ZPL
prop_changenode_t *cn;
int ret = 0;
prop_changenode_t *cn;
int ret = 0;
@@
-131,6
+132,8
@@
changelist_prefix(prop_changelist_t *clp)
case ZFS_PROP_SHARESMB:
(void) zfs_unshare_smb(cn->cn_handle, NULL);
break;
case ZFS_PROP_SHARESMB:
(void) zfs_unshare_smb(cn->cn_handle, NULL);
break;
+ default:
+ break;
}
}
}
}
}
}
@@
-139,6
+142,9
@@
changelist_prefix(prop_changelist_t *clp)
(void) changelist_postfix(clp);
return (ret);
(void) changelist_postfix(clp);
return (ret);
+#else
+ return 0;
+#endif /* HAVE_ZPL */
}
/*
}
/*
@@
-153,6
+159,7
@@
changelist_prefix(prop_changelist_t *clp)
int
changelist_postfix(prop_changelist_t *clp)
{
int
changelist_postfix(prop_changelist_t *clp)
{
+#ifdef HAVE_ZPL
prop_changenode_t *cn;
char shareopts[ZFS_MAXPROPLEN];
int errors = 0;
prop_changenode_t *cn;
char shareopts[ZFS_MAXPROPLEN];
int errors = 0;
@@
-253,6
+260,9
@@
changelist_postfix(prop_changelist_t *clp)
}
return (errors ? -1 : 0);
}
return (errors ? -1 : 0);
+#else
+ return 0;
+#endif /* HAVE_ZPL */
}
/*
}
/*
@@
-315,6
+325,7
@@
changelist_rename(prop_changelist_t *clp, const char *src, const char *dst)
int
changelist_unshare(prop_changelist_t *clp, zfs_share_proto_t *proto)
{
int
changelist_unshare(prop_changelist_t *clp, zfs_share_proto_t *proto)
{
+#ifdef HAVE_ZPL
prop_changenode_t *cn;
int ret = 0;
prop_changenode_t *cn;
int ret = 0;
@@
-329,6
+340,9
@@
changelist_unshare(prop_changelist_t *clp, zfs_share_proto_t *proto)
}
return (ret);
}
return (ret);
+#else
+ return 0;
+#endif
}
/*
}
/*