|
50 | 50 | .Oo Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot Oc Ns … |
51 | 51 | . |
52 | 52 | .Sh DESCRIPTION |
53 | | -If specified, you can list property information by the absolute pathname or the |
54 | | -relative pathname. |
55 | | -By default, all file systems and volumes are displayed. |
| 53 | +By default, all file systems and volumes are displayed, with the following |
| 54 | +fields: |
| 55 | +.Sy name , Sy used , Sy available , Sy referenced , Sy mountpoint . |
56 | 56 | Snapshots are displayed if the |
57 | 57 | .Sy listsnapshots |
58 | 58 | pool property is |
59 | 59 | .Sy on |
60 | 60 | .Po the default is |
61 | 61 | .Sy off |
62 | | -.Pc , |
| 62 | +.Pc |
63 | 63 | or if the |
64 | 64 | .Fl t Sy snapshot |
65 | 65 | or |
66 | 66 | .Fl t Sy all |
67 | 67 | options are specified. |
68 | | -The following fields are displayed: |
69 | | -.Sy name , Sy used , Sy available , Sy referenced , Sy mountpoint . |
70 | 68 | .Bl -tag -width "-H" |
71 | 69 | .It Fl H |
72 | 70 | Used for scripting mode. |
73 | | -Do not print headers and separate fields by a single tab instead of arbitrary |
| 71 | +Do not print headers, and separate fields by a single tab instead of arbitrary |
74 | 72 | white space. |
75 | 73 | .It Fl j , -json Op Ar --json-int |
76 | 74 | Print the output in JSON format. |
|
87 | 85 | will display only the dataset and its direct children. |
88 | 86 | .It Fl o Ar property |
89 | 87 | A comma-separated list of properties to display. |
90 | | -The property must be: |
| 88 | +Each property must be: |
91 | 89 | .Bl -bullet -compact |
92 | 90 | .It |
93 | 91 | One of the properties described in the |
@@ -125,30 +123,41 @@ section of |
125 | 123 | or the value |
126 | 124 | .Sy name |
127 | 125 | to sort by the dataset name. |
128 | | -Multiple properties can be specified at one time using multiple |
| 126 | +Multiple properties can be specified to operate together using multiple |
129 | 127 | .Fl s |
130 | | -property options. |
| 128 | +or |
| 129 | +.Fl S |
| 130 | +options. |
131 | 131 | Multiple |
132 | 132 | .Fl s |
133 | | -options are evaluated from left to right in decreasing order of importance. |
134 | | -The following is a list of sorting criteria: |
| 133 | +and |
| 134 | +.Fl S |
| 135 | +options are evaluated from left to right to supply sort keys in |
| 136 | +decreasing order of priority. |
| 137 | +Property types operate as follows: |
135 | 138 | .Bl -bullet -compact |
136 | 139 | .It |
137 | 140 | Numeric types sort in numeric order. |
138 | 141 | .It |
139 | 142 | String types sort in alphabetical order. |
140 | 143 | .It |
141 | | -Types inappropriate for a row sort that row to the literal bottom, regardless of |
142 | | -the specified ordering. |
| 144 | +Types inappropriate for a row sort that row to the literal bottom, |
| 145 | +regardless of the specified ordering. |
143 | 146 | .El |
144 | 147 | .Pp |
145 | | -If no sorting options are specified the existing behavior of |
146 | | -.Nm zfs Cm list |
147 | | -is preserved. |
| 148 | +If no sort columns are specified, or if two lines of output would sort |
| 149 | +equally across all specified columns, then datasets and bookmarks are |
| 150 | +sorted by name, whereas snapshots are sorted first by the name of their |
| 151 | +dataset and then by the time of their creation. |
| 152 | +When no sort columns are specified but snapshots are listed, this |
| 153 | +default behavior causes snapshots to be grouped under their datasets in |
| 154 | +chronological order by creation time. |
148 | 155 | .It Fl S Ar property |
149 | 156 | Same as |
150 | 157 | .Fl s , |
151 | | -but sorts by property in descending order. |
| 158 | +but sorts by |
| 159 | +.Ar property |
| 160 | +in descending order. |
152 | 161 | .It Fl t Ar type |
153 | 162 | A comma-separated list of types to display, where |
154 | 163 | .Ar type |
|
0 commit comments