Link libshare directly to libzfs
[zfs.git] / lib / libzfs / libzfs_graph.c
index e7cbf23..0e538e3 100644 (file)
  * CDDL HEADER END
  */
 /*
- * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
+ * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
-#pragma ident  "%Z%%M% %I%     %E% SMI"
-
 /*
  * Iterate over all children of the current object.  This includes the normal
  * dataset hierarchy, but also arbitrary hierarchies due to clones.  We want to
@@ -381,7 +379,7 @@ zfs_graph_add(libzfs_handle_t *hdl, zfs_graph_t *zgp, const char *source,
 static int
 iterate_children(libzfs_handle_t *hdl, zfs_graph_t *zgp, const char *dataset)
 {
-       zfs_cmd_t zc = { 0 };
+       zfs_cmd_t zc = { "\0", "\0", "\0", "\0", 0 };
        zfs_vertex_t *zvp;
 
        /*
@@ -399,13 +397,6 @@ iterate_children(libzfs_handle_t *hdl, zfs_graph_t *zgp, const char *dataset)
        for ((void) strlcpy(zc.zc_name, dataset, sizeof (zc.zc_name));
            ioctl(hdl->libzfs_fd, ZFS_IOC_DATASET_LIST_NEXT, &zc) == 0;
            (void) strlcpy(zc.zc_name, dataset, sizeof (zc.zc_name))) {
-
-               /*
-                * Ignore private dataset names.
-                */
-               if (dataset_name_hidden(zc.zc_name))
-                       continue;
-
                /*
                 * Get statistics for this dataset, to determine the type of the
                 * dataset and clone statistics.  If this fails, the dataset has
@@ -482,7 +473,7 @@ iterate_children(libzfs_handle_t *hdl, zfs_graph_t *zgp, const char *dataset)
 static boolean_t
 external_dependents(libzfs_handle_t *hdl, zfs_graph_t *zgp, const char *dataset)
 {
-       zfs_cmd_t zc = { 0 };
+       zfs_cmd_t zc = { "\0", "\0", "\0", "\0", 0 };
 
        /*
         * Check whether this dataset is a clone or has clones since