Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] add missing read-only zfs property "space"
- X-seq: zsh-workers 46054
- From: Frederick Zhang <frederick888@xxxxxxxxxxxx>
- To: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- Subject: Re: [PATCH] add missing read-only zfs property "space"
- Date: Wed, 17 Jun 2020 18:42:24 +1000
- Autocrypt: addr=frederick888@xxxxxxxxxxxx; keydata= mQINBFxIAyABEAC9s9Rutqley+BLPGNyADPo6relqllxSGYC0EhwzsZ4d/nxrJKNlsYmvIG9 xZm2aK+7Otnv/5OPjcK+KYxdN/kYyaGkcZti5Rn/kqzC/axHl3nzaDiTYHLJBdLl8E/Zvvee QPWpSM7Y7jqMDoMSoakxXWG1zaai4F4ZI6JimTlXxAkJYzmUK86fBydc/7bUIL8AD8dm3X5a /HX8G206coB1H/GctJDYxu8GSnNb9RL+YtXbQy58hdbp+5t7YdFrbfgKglzjfB3txMo0iQGE LSIu+Eju+Et50yMcPb/boDTnqPaaGdabomxZrMbz2GpD69iKksEOXrme/hx8+TA7pQZ+8tXU aRG7FBWww8i7va52+tNjJeTootKGd+Q5ulZT8Ye1/n3Gcrpa5vo1nwQQ9f728w20vQg3jYYS /fE5nPetHgxnTPDoOj5yI4ctHe7FykhC41su1OvB2RDVIxx37WD/DdRS2Wn4j2lLB2wlTD1N wAxrjTyLhgYuHi/BGtkrvsyIq90mXztejM6bjihPhONnuzTp6J5ytONF5zuBHhmqZyJsnJmM Uu8WMUHwxCisvKtq4GnMBHb2uC9qb9ZphHTFyVQgUeTLIXPUS88UqXBYhhvEz6MN0yJob/KY 8a6oIL+BxQwUmHvuE4nUQgGF+JJE3aWOyNTHlWN3y9eBbvDrUQARAQABtCtGcmVkZXJpY2sg WmhhbmcgPGZyZWRlcmljazg4OEB0c3VuZGVyZS5tb2U+iQJXBBMBCABBAhsDBQsJCAcCBhUK CQgLAgQWAgMBAh4BAheAAhkBFiEEi/vqW0xEv6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vocj+nq40GXWkqJfl9PWwrJWn0g9y4PSLfveSpb8mUDnfXs7hyUQj4u1sg5LP YxE5AnmTp+l5KIJ3euM0hnt0kIaT0ebko1driv7jj6rB1hi4U6h/FmADvNbR0jH3THScklC4 lzXZeVQ=
- Cc: zsh-workers@xxxxxxx
- In-reply-to: <20200617083812.16ac8afc@tarpaulin.shahaf.local2>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20200605081136.82262-1-frederick888@tsundere.moe> <20200617083812.16ac8afc@tarpaulin.shahaf.local2>
It's documented in the man page under Subcommands -> zfs list:
> -o property
> (omitted)
> • The value space to display space usage properties on file systems and volumes. This is a shortcut for specifying -o name,avail,used,usedsnap,usedds,usedrefreserv,usedchild -t filesystem,volume syntax.
On 17/6/20 6:38 pm, Daniel Shahaf wrote:
> Thanks for the patch.
>
> I see that «zfs list -o space» works, but I don't see any reference to
> the value «space» in the help output (`zfs list -o foobar 2>&1`) or man
> page. Is that value supported and undocumented? Or is it undocumented
> because it's deprecated?
>
> workers@, could someone take over the review, please? I have a few
> patches to finish and don't want to spread myself too thin.
>
> Cheers,
>
> Daniel
>
>
> Frederick Zhang wrote on Fri, 05 Jun 2020 18:11 +1000:
>> Signed-off-by: Frederick Zhang <frederick888@xxxxxxxxxxxx>
>> ---
>> Completion/Unix/Command/_zfs | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> Although it's only documented under 'zfs list', it seems to be available
>> to other subcommands as well, e.g. 'zfs get'.
>>
>> diff --git a/Completion/Unix/Command/_zfs b/Completion/Unix/Command/_zfs
>> index 814358bc7..452e1160d 100644
>> --- a/Completion/Unix/Command/_zfs
>> +++ b/Completion/Unix/Command/_zfs
>> @@ -132,9 +132,9 @@ _zfs() {
>> )
>>
>> # TODO: userused@ and groupused@ could have more extensive handling
>> ro_properties=(
>> - "name" "type" "creation" "used" "available" "referenced"
>> + "name" "type" "creation" "space" "used" "available" "referenced"
>> "compressratio" "mounted" "origin" "usedbychildren"
>> "usedbydataset" "usedbyrefreservation" "usedbysnapshots"
>> "defer_destroy" "userused@" "userrefs" "groupused@"
>> "keychangedate" "keystatus" "rekeydate"
>
--
Best regards,
Frederick Zhang
Email: frederick888@xxxxxxxxxxxx
PGP: 8BFB EA5B 4C44 BFAC C8EC 5F93 1F92 8BE6 0D8B C11D
Attachment:
signature.asc
Description: OpenPGP digital signature
Messages sorted by:
Reverse Date,
Date,
Thread,
Author