diff options
author | ken <ken@FreeBSD.org> | 1998-10-01 23:30:14 +0000 |
---|---|---|
committer | ken <ken@FreeBSD.org> | 1998-10-01 23:30:14 +0000 |
commit | 8bb1ed55dd8d46ac8a99c4d5345cb40bc463c690 (patch) | |
tree | 2f8fca0fd3a9b097433a2bd78e0b678f6466dc43 /bin/chio | |
parent | c9a04630c0816e4817356cbdfa74118f638db098 (diff) | |
download | FreeBSD-src-8bb1ed55dd8d46ac8a99c4d5345cb40bc463c690.zip FreeBSD-src-8bb1ed55dd8d46ac8a99c4d5345cb40bc463c690.tar.gz |
Fix 'chio params' so that it actually prints out the current picker.
(This was broken when the volume tag changes went in.)
Submitted by: Josef Karthauser <joe@pavilion.net>
Diffstat (limited to 'bin/chio')
-rw-r--r-- | bin/chio/chio.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/chio/chio.c b/bin/chio/chio.c index c2da513..f00b738 100644 --- a/bin/chio/chio.c +++ b/bin/chio/chio.c @@ -382,6 +382,7 @@ static int do_params(char *cname, int argc, char **argv) { struct changer_params data; + int picker; /* No arguments to this command. */ @@ -406,6 +407,12 @@ do_params(char *cname, int argc, char **argv) (void) printf(", %d portal%s", data.cp_nportals, (data.cp_nportals > 1) ? "s" : ""); + /* Get current picker from changer and display it. */ + if (ioctl(changer_fd, CHIOGPICKER, &picker)) + err(1, "%s: CHIOGPICKER", changer_name); + + (void) printf("\n%s: current picker: %d\n", changer_name, picker); + return (0); usage: |