Bug 264108 - bectl should probably fail when given an invalid sort property for -c
Summary: bectl should probably fail when given an invalid sort property for -c
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-20 22:25 UTC by Graham Perrin
Modified: 2022-05-20 22:25 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Graham Perrin freebsd_committer freebsd_triage 2022-05-20 22:25:45 UTC
Through mistyping, I noticed that given an invalid property such as 

    creatoin

bectl behaves as if no sort was specified. 

I imagine that bectl should, instead, fail (with an exit code?) so that no mistake can occur with scripted or unattended operations. 


root@mowa219-gjp4-8570p-freebsd:~ # bectl list -c creatoin
BE                        Active Mountpoint Space Created
n255588-01235012e5b-c     -      -          70.1M 2022-05-14 13:13
n252381-75d20a5e386-b     -      -          23.5G 2022-01-12 23:23
n255588-01235012e5b-b-c1a -      -          306M  2022-05-15 09:19
n255588-01235012e5b-d     -      -          15.8G 2022-05-15 00:29
n253343-9835900cb95-c     -      -          9.32G 2022-02-27 14:58
n254693-d7696096209-f     -      -          14.2G 2022-04-27 17:41
n255078-e140d551b78-h     -      -          7.06M 2022-05-11 21:18
n255588-01235012e5b-b-c1b NR     /          3.85G 2022-05-16 08:53
n250511-5f73b3338ee-d     -      -          64.6G 2021-11-13 15:43
n253776-d5ad1713cc3-b     -      -          14.1G 2022-03-18 09:31
n253116-39a36707bd3-e     -      -          7.58G 2022-02-20 07:03
n253861-92e6b4712b5-e     -      -          14.5G 2022-04-02 16:02
n252997-b6724f7004c-c     -      -          8.10G 2022-02-11 23:07
n255588-01235012e5b-b     -      -          9.37M 2022-05-12 23:36
n254268-50e244964e9-d     -      -          11.0G 2022-04-09 18:50
n252450-5efa7281a79-a     -      -          6.87G 2022-01-14 19:27
n252505-cc68614da82-a     -      -          5.24G 2022-01-18 14:26
n252483-c8f8299a230-b     -      -          7.85G 2022-01-17 14:24
n255588-01235012e5b-a     -      -          19.4M 2022-05-12 22:23
n252531-0ce7909cd0b-h     -      -          10.1G 2022-02-06 12:24
root@mowa219-gjp4-8570p-freebsd:~ # bectl list -c creation
BE                        Active Mountpoint Space Created
n250511-5f73b3338ee-d     -      -          64.6G 2021-11-13 15:43
n252381-75d20a5e386-b     -      -          23.5G 2022-01-12 23:23
n252450-5efa7281a79-a     -      -          6.87G 2022-01-14 19:27
n252483-c8f8299a230-b     -      -          7.85G 2022-01-17 14:24
n252505-cc68614da82-a     -      -          5.24G 2022-01-18 14:26
n252531-0ce7909cd0b-h     -      -          10.1G 2022-02-06 12:24
n252997-b6724f7004c-c     -      -          8.10G 2022-02-11 23:07
n253116-39a36707bd3-e     -      -          7.58G 2022-02-20 07:03
n253343-9835900cb95-c     -      -          9.32G 2022-02-27 14:58
n253776-d5ad1713cc3-b     -      -          14.1G 2022-03-18 09:31
n253861-92e6b4712b5-e     -      -          14.5G 2022-04-02 16:02
n254268-50e244964e9-d     -      -          11.0G 2022-04-09 18:50
n254693-d7696096209-f     -      -          14.2G 2022-04-27 17:41
n255078-e140d551b78-h     -      -          7.06M 2022-05-11 21:18
n255588-01235012e5b-a     -      -          19.4M 2022-05-12 22:23
n255588-01235012e5b-b     -      -          9.37M 2022-05-12 23:36
n255588-01235012e5b-c     -      -          70.1M 2022-05-14 13:13
n255588-01235012e5b-d     -      -          15.8G 2022-05-15 00:29
n255588-01235012e5b-b-c1a -      -          306M  2022-05-15 09:19
n255588-01235012e5b-b-c1b NR     /          3.85G 2022-05-16 08:53
root@mowa219-gjp4-8570p-freebsd:~ # man bectl
root@mowa219-gjp4-8570p-freebsd:~ # uname -KU
1400058 1400058
root@mowa219-gjp4-8570p-freebsd:~ #