Lines 462-468
Link Here
|
462 |
} |
462 |
} |
463 |
|
463 |
|
464 |
#if defined(__linux__) && defined(_IOR) && !defined(BLKGETSIZE64) |
464 |
#if defined(__linux__) && defined(_IOR) && !defined(BLKGETSIZE64) |
465 |
# define BLKGETSIZE64 _IOR(0x12, 114, __u64) |
465 |
/* Note! Despite this call being called with *64, it must be encoded to |
|
|
466 |
* return only sizeof(size_t), since in earlier kernel versions it was |
467 |
* declared _IOR(0x12, 114, sizeof(u64)), making it use sizeof(sizeof(u64)). |
468 |
* |
469 |
* However, the call itself does always return 64bit! |
470 |
*/ |
471 |
# define BLKGETSIZE64 _IOR(0x12, 114, size_t) |
466 |
#endif |
472 |
#endif |
467 |
|
473 |
|
468 |
/* To not have problem with last sectors on the block device when switching |
474 |
/* To not have problem with last sectors on the block device when switching |