[patch] hdparm: -q not supported

Christoph Gysin mailinglist.cache at gmail.com
Thu Mar 6 15:49:12 UTC 2008


The -q flag is not supported by busybox, even though it is mentioned
in the usage.

$ busybox hdparm 2>&1 | grep -- '-q\W'
	-q	Change next setting quietly

$ busybox hdparm -q -c1 /dev/sdb
hdparm: invalid option -- q

/dev/sdb:
 setting 32-bit IO_support flag to 1

I tried to write a patch, but it doesn't make much sense. Theres over
200 places where printf() is used throughout miscutils/hdparm.c.

The easier way is to remove the line from the usage, and me
redirecting output to /dev/null...

Patch attached.

Christoph
-------------- next part --------------
A non-text attachment was scrubbed...
Name: busybox-hdparm-quiet.patch
Type: text/x-patch
Size: 520 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20080306/b570c2ad/attachment-0002.bin 


More information about the busybox mailing list