]> git.proxmox.com Git - mirror_zfs-debian.git/blobdiff - module/zfs/dsl_dir.c
Rebase master to b117
[mirror_zfs-debian.git] / module / zfs / dsl_dir.c
index e5e18f428701dc115158b32a6858e8e58b5b49ab..f19653d9241b889ff24314b93b442de6889cf95c 100644 (file)
@@ -227,24 +227,11 @@ dsl_dir_namelen(dsl_dir_t *dd)
        return (result);
 }
 
-int
-dsl_dir_is_private(dsl_dir_t *dd)
-{
-       int rv = FALSE;
-
-       if (dd->dd_parent && dsl_dir_is_private(dd->dd_parent))
-               rv = TRUE;
-       if (dataset_name_hidden(dd->dd_myname))
-               rv = TRUE;
-       return (rv);
-}
-
-
 static int
 getcomponent(const char *path, char *component, const char **nextp)
 {
        char *p;
-       if (path == NULL)
+       if ((path == NULL) || (path[0] == '\0'))
                return (ENOENT);
        /* This would be a good place to reserve some namespace... */
        p = strpbrk(path, "/@");