aboutsummaryrefslogtreecommitdiff
path: root/miscutils/hdparm.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Patch from tito to replace shared memory usage with mlock(), slightly tweakedRob Landley2006-05-191-24/+10
| | | | by me.
* Largeish cleanup patch from Tito, mostly if statement therapy.Rob Landley2006-05-161-534/+350
|
* typecast bbig to kill format warningsMike Frysinger2006-05-111-3/+3
|
* The if() is cheaper than the extra function parameter. According to makeRob Landley2006-05-081-26/+26
| | | | bloatcheck, this saves 112 bytes on x86...
* Cleanup patch from tito.Rob Landley2006-05-071-379/+158
|
* Patch from Dennis Vlasenko resetting values that get reused.Rob Landley2006-05-051-5/+18
|
* Remove HDIO_GETGEO_BIG which is dead (removed from 2.6) and was pointless backRob Landley2006-05-031-12/+4
| | | | | | | | | in 2.4 (it fetched the same hd_geometry struct only with uint cylinders instead of ushort cylinders: nothing that big has ever accurately reported gemoetry, it's all LBA. Also stop declaring the hd_geometry struct static: it's two chars, a short, and a long for a grand total of 8 bytes. That can go on the stack.
* Use ATTRIBUTE_NORETURN as suggested by tito, plus a few in-passing cleanups.Rob Landley2006-05-031-16/+13
|
* Patch from tito removing obsolete code.Rob Landley2006-05-011-142/+11
|
* Remove some unused code pointed out by Tito, plus a slightly more gracefulRob Landley2006-04-291-35/+7
| | | | way of handling endianness.
* Style fixes from Denis Vlasenko.Rob Landley2006-04-291-147/+146
|
* Another patch from Denis Vlasenko:Rob Landley2006-04-291-48/+42
| | | | | | | | | Make hdparm smaller: * Make bb_ioctl return the status * Replace ioctl with bb_ioctl in a few places * Add bb_ioctl_alt, use where appropriate (four places) * unsigned char args1[4+512] = {WIN_IDENTIFY,0,0,1,}; ate 0.5k of rodata, fix that
* From Dennis Vlasenko, Make hdparm smaller:Rob Landley2006-04-291-73/+49
| | | | | * Use combined no_scsi_no_xt() * Have common unsigned char args[4] = {WIN_SETFEATURES,0,0,0};
* Cleanup to hdparm by tito.Rob Landley2006-04-291-12/+11
|
* Patch from tito to update output of hdparm.Rob Landley2006-04-281-12/+22
|
* Patch from Tito to fix printing null and make output look like hdparm 6.3.Rob Landley2006-04-171-5/+5
|
* use more boiler plate GPL noticesMike Frysinger2006-04-161-3/+1
|
* - tweak visibility of label expected_hwif_error as it's only needed forBernhard Reutner-Fischer2006-04-111-0/+2
| | | | CONFIG_FEATURE_HDPARM_HDIO_UNREGISTER_HWIF or CONFIG_FEATURE_HDPARM_HDIO_SCAN_HWIF
* - make sure that the label expected_hwif_error is visible even whenBernhard Reutner-Fischer2006-04-051-15/+3
| | | | CONFIG_FEATURE_HDPARM_HDIO_SCAN_HWIF isn't set.
* Patch from Denis Vlasenko to add xstat() and use it.Rob Landley2006-03-131-2/+1
|
* Patch from Robert P. Day, moving byte order checks to use platform.h macros.Rob Landley2006-03-041-2/+2
|
* Patch from Denis Vlasenko to constify things and fix a few typos.Rob Landley2006-02-221-1/+3
|
* fix up yet more annoying signed/unsigned and mixed type errorsEric Andersen2006-01-301-3/+3
|
* just whitespaceTim Riker2006-01-251-36/+36
|
* data --> code"Vladimir N. Oleynik"2005-10-151-51/+52
|
* Patch from Bernhard Fischer to make a bunch of symbols staticEric Andersen2005-04-161-2/+2
| | | | which were otherwise cluttering the global namespace.
* Avoid a naming conflict with include/bits/fcntl.hEric Andersen2004-07-201-4/+4
|
* Larry Doolittle writes:Eric Andersen2004-04-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | This is a bulk spelling fix patch against busybox-1.00-pre10. If anyone gets a corrupted copy (and cares), let me know and I will make alternate arrangements. Erik - please apply. Authors - please check that I didn't corrupt any meaning. Package importers - see if any of these changes should be passed to the upstream authors. I glossed over lots of sloppy capitalizations, missing apostrophes, mixed American/British spellings, and German-style compound words. What is "pretect redefined for test" in cmdedit.c? Good luck on the 1.00 release! - Larry
* Tito, farmatito at tiscali dot it writes:Eric Andersen2004-04-051-31/+32
| | | | | | | | | | | | | | | | | | | Hi to all, I discovered a little bug in hdparm.c (really two little bugs...I've made...sigh! Mea culpa). Some vars were modified only locally and this could lead to wrong results to be displayed with the -I switch and maybe with others. Attached is a patch that fix it ( +88b). Also attached is second patch that reduces the size a little bit: text data bss dec hex filename 27984 624 900 29508 7344 hdparm.o (without bug-fix) 28072 624 900 29596 739c hdparm.o (with bug-fix) 28141 624 900 29665 73e1 hdparm.o (original) but maybe this one can wait as we are in a feature freeze. Ciao, Tito
* Tito noticed a printf that should have been a bb_error_msg.Eric Andersen2004-03-201-1/+1
|
* Fix broken arg parsing (was not passing pointer to items so p, argc, and argvEric Andersen2004-03-191-132/+117
| | | | | were only modified locally). Fix error reporting to properly describe why ioctls fail.
* Remove trailing whitespace. Update copyright to include 2004.Eric Andersen2004-03-151-3/+3
|
* Avoid naming conflict with symbol in newer glibc headersEric Andersen2004-02-141-4/+4
|
* Fix compile when CONFIG_FEATURE_HDPARM_GET_IDENTITY is disabledEric Andersen2003-12-121-6/+9
|
* Correct Matteo's email addressGlenn L McGrath2003-11-281-1/+1
|
* Patch from Steven Scholz, fix some warningsGlenn L McGrath2003-10-091-1/+1
|
* Patch from Tito, size optimisation and fix error in exit code of -VGlenn L McGrath2003-10-091-1056/+1265
| | | | option
* Update Matteo Croce's email addressGlenn L McGrath2003-09-151-1/+1
|
* quiet some noiseEric Andersen2003-08-081-0/+2
|
* Patch from Steven Scholz:Eric Andersen2003-08-061-1/+5
| | | | | | | | | | | should we rename the define into CONFIG_FEATURE_HDPARM_HDIO_DMA and use it for "set" and "get" ??? Since although CONFIG_FEATURE_HDPARM_HDIO_GET_DMA is _not_ set I still can use "hdparm -d 1 /dev/hda" to switch the DMA on. Is this desireable or meant to be like that? So how about the applied patch?
* Sync hdparm -t and -T options with hdparm-5.3, which seemsEric Andersen2003-08-061-66/+69
| | | | to produce sensible results,
* Matteo Croce submitted a hdparm applet.Eric Andersen2003-07-221-0/+2665