diff options
author | Karel Zak | 2006-12-07 00:25:43 +0100 |
---|---|---|
committer | Karel Zak | 2006-12-07 00:25:43 +0100 |
commit | 22853e4a82c6ef7b336527529acb94b14a0b0fd8 (patch) | |
tree | ee28e4598c8c449d7e811711d8ce8eb17caecfb6 /disk-utils/blockdev.c | |
parent | Imported from util-linux-2.10f tarball. (diff) | |
download | kernel-qcow2-util-linux-22853e4a82c6ef7b336527529acb94b14a0b0fd8.tar.gz kernel-qcow2-util-linux-22853e4a82c6ef7b336527529acb94b14a0b0fd8.tar.xz kernel-qcow2-util-linux-22853e4a82c6ef7b336527529acb94b14a0b0fd8.zip |
Imported from util-linux-2.10m tarball.
Diffstat (limited to 'disk-utils/blockdev.c')
-rw-r--r-- | disk-utils/blockdev.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/disk-utils/blockdev.c b/disk-utils/blockdev.c index 7f1fd7bb8..af727f7da 100644 --- a/disk-utils/blockdev.c +++ b/disk-utils/blockdev.c @@ -11,9 +11,22 @@ #include <unistd.h> #include <sys/ioctl.h> -#include <linux/fs.h> #include "nls.h" +/* Since it is impossible to include <linux/fs.h>, let us + give the ioctls explicitly. */ + +#ifndef BLKROSET +#define BLKROSET _IO(0x12,93) +#define BLKROGET _IO(0x12,94) +#define BLKRRPART _IO(0x12,95) +#define BLKGETSIZE _IO(0x12,96) +#define BLKFLSBUF _IO(0x12,97) +#define BLKRASET _IO(0x12,98) +#define BLKRAGET _IO(0x12,99) +#define BLKSSZGET _IO(0x12,104) +#endif + const char *progname; struct bdc { @@ -76,7 +89,7 @@ usage(void) { exit(1); } -int +static int find_cmd(char *s) { int j; |