]> git.proxmox.com Git - mirror_zfs.git/blobdiff - cmd/zfs/zfs_main.c
zfs get: add '-t fs' and '-t vol' options
[mirror_zfs.git] / cmd / zfs / zfs_main.c
index ec52c563b447771be51a00a730b101cb02bbdce8..0bbdd5b18eda5bd0cd4fc243601cdef49494be18 100644 (file)
@@ -2146,15 +2146,25 @@ found2:;
 
                        for (char *tok; (tok = strsep(&optarg, ",")); ) {
                                static const char *const type_opts[] = {
-                                       "filesystem", "volume",
-                                       "snapshot", "snap",
+                                       "filesystem",
+                                       "fs",
+                                       "volume",
+                                       "vol",
+                                       "snapshot",
+                                       "snap",
                                        "bookmark",
-                                       "all" };
+                                       "all"
+                               };
                                static const int type_types[] = {
-                                       ZFS_TYPE_FILESYSTEM, ZFS_TYPE_VOLUME,
-                                       ZFS_TYPE_SNAPSHOT, ZFS_TYPE_SNAPSHOT,
+                                       ZFS_TYPE_FILESYSTEM,
+                                       ZFS_TYPE_FILESYSTEM,
+                                       ZFS_TYPE_VOLUME,
+                                       ZFS_TYPE_VOLUME,
+                                       ZFS_TYPE_SNAPSHOT,
+                                       ZFS_TYPE_SNAPSHOT,
                                        ZFS_TYPE_BOOKMARK,
-                                       ZFS_TYPE_DATASET | ZFS_TYPE_BOOKMARK };
+                                       ZFS_TYPE_DATASET | ZFS_TYPE_BOOKMARK
+                               };
 
                                for (i = 0; i < ARRAY_SIZE(type_opts); ++i)
                                        if (strcmp(tok, type_opts[i]) == 0) {