mirror of
https://git.busybox.net/busybox
synced 2026-01-31 16:43:21 +00:00
hdparm: fix multisector mode setting
(from Toni Mirabete <amirabete@catix.cat>)
This commit is contained in:
parent
4caa09a782
commit
ae47cd1da7
1 changed files with 2 additions and 2 deletions
|
|
@ -1577,9 +1577,9 @@ static void process_dev(char *devname)
|
|||
if (set_mult) {
|
||||
print_flag(get_mult, "multcount", mult);
|
||||
#ifdef HDIO_DRIVE_CMD
|
||||
bb_ioctl(fd, HDIO_SET_MULTCOUNT, &mult, "HDIO_SET_MULTCOUNT");
|
||||
bb_ioctl(fd, HDIO_SET_MULTCOUNT, (void *)mult, "HDIO_SET_MULTCOUNT");
|
||||
#else
|
||||
force_operation |= (!bb_ioctl(fd, HDIO_SET_MULTCOUNT, &mult, "HDIO_SET_MULTCOUNT"));
|
||||
force_operation |= (!bb_ioctl(fd, HDIO_SET_MULTCOUNT, (void *)mult, "HDIO_SET_MULTCOUNT"));
|
||||
#endif
|
||||
}
|
||||
if (set_readonly) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue