@@ -181,7 +181,7 @@ HDIO_SET_UNMASKINTR
181181
182182
183183 error return:
184- - EINVAL (bdev != bdev->bd_contains) (not sure what this means)
184+ - EINVAL Called on a partition instead of the whole disk device
185185 - EACCES Access denied: requires CAP_SYS_ADMIN
186186 - EINVAL value out of range [0 1]
187187 - EBUSY Controller busy
@@ -231,7 +231,7 @@ HDIO_SET_MULTCOUNT
231231
232232
233233 error return:
234- - EINVAL (bdev != bdev->bd_contains) (not sure what this means)
234+ - EINVAL Called on a partition instead of the whole disk device
235235 - EACCES Access denied: requires CAP_SYS_ADMIN
236236 - EINVAL value out of range supported by disk.
237237 - EBUSY Controller busy or blockmode already set.
@@ -295,7 +295,7 @@ HDIO_GET_IDENTITY
295295 the ATA specification.
296296
297297 error returns:
298- - EINVAL (bdev != bdev->bd_contains) (not sure what this means)
298+ - EINVAL Called on a partition instead of the whole disk device
299299 - ENOMSG IDENTIFY DEVICE information not available
300300
301301 notes:
@@ -355,7 +355,7 @@ HDIO_SET_KEEPSETTINGS
355355
356356
357357 error return:
358- - EINVAL (bdev != bdev->bd_contains) (not sure what this means)
358+ - EINVAL Called on a partition instead of the whole disk device
359359 - EACCES Access denied: requires CAP_SYS_ADMIN
360360 - EINVAL value out of range [0 1]
361361 - EBUSY Controller busy
@@ -1055,7 +1055,7 @@ HDIO_SET_32BIT
10551055
10561056
10571057 error return:
1058- - EINVAL (bdev != bdev->bd_contains) (not sure what this means)
1058+ - EINVAL Called on a partition instead of the whole disk device
10591059 - EACCES Access denied: requires CAP_SYS_ADMIN
10601060 - EINVAL value out of range [0 3]
10611061 - EBUSY Controller busy
@@ -1085,7 +1085,7 @@ HDIO_SET_NOWERR
10851085
10861086
10871087 error return:
1088- - EINVAL (bdev != bdev->bd_contains) (not sure what this means)
1088+ - EINVAL Called on a partition instead of the whole disk device
10891089 - EACCES Access denied: requires CAP_SYS_ADMIN
10901090 - EINVAL value out of range [0 1]
10911091 - EBUSY Controller busy
@@ -1113,7 +1113,7 @@ HDIO_SET_DMA
11131113
11141114
11151115 error return:
1116- - EINVAL (bdev != bdev->bd_contains) (not sure what this means)
1116+ - EINVAL Called on a partition instead of the whole disk device
11171117 - EACCES Access denied: requires CAP_SYS_ADMIN
11181118 - EINVAL value out of range [0 1]
11191119 - EBUSY Controller busy
@@ -1141,7 +1141,7 @@ HDIO_SET_PIO_MODE
11411141
11421142
11431143 error return:
1144- - EINVAL (bdev != bdev->bd_contains) (not sure what this means)
1144+ - EINVAL Called on a partition instead of the whole disk device
11451145 - EACCES Access denied: requires CAP_SYS_ADMIN
11461146 - EINVAL value out of range [0 255]
11471147 - EBUSY Controller busy
@@ -1237,7 +1237,7 @@ HDIO_SET_WCACHE
12371237
12381238
12391239 error return:
1240- - EINVAL (bdev != bdev->bd_contains) (not sure what this means)
1240+ - EINVAL Called on a partition instead of the whole disk device
12411241 - EACCES Access denied: requires CAP_SYS_ADMIN
12421242 - EINVAL value out of range [0 1]
12431243 - EBUSY Controller busy
@@ -1265,7 +1265,7 @@ HDIO_SET_ACOUSTIC
12651265
12661266
12671267 error return:
1268- - EINVAL (bdev != bdev->bd_contains) (not sure what this means)
1268+ - EINVAL Called on a partition instead of the whole disk device
12691269 - EACCES Access denied: requires CAP_SYS_ADMIN
12701270 - EINVAL value out of range [0 254]
12711271 - EBUSY Controller busy
@@ -1305,7 +1305,7 @@ HDIO_SET_ADDRESS
13051305
13061306
13071307 error return:
1308- - EINVAL (bdev != bdev->bd_contains) (not sure what this means)
1308+ - EINVAL Called on a partition instead of the whole disk device
13091309 - EACCES Access denied: requires CAP_SYS_ADMIN
13101310 - EINVAL value out of range [0 2]
13111311 - EBUSY Controller busy
@@ -1331,7 +1331,7 @@ HDIO_SET_IDE_SCSI
13311331
13321332
13331333 error return:
1334- - EINVAL (bdev != bdev->bd_contains) (not sure what this means)
1334+ - EINVAL Called on a partition instead of the whole disk device
13351335 - EACCES Access denied: requires CAP_SYS_ADMIN
13361336 - EINVAL value out of range [0 1]
13371337 - EBUSY Controller busy
0 commit comments