diff -urN linux-2.6.30-gentoo-r1-orig/include/linux/loop.h linux-2.6.30-gentoo-r1/include/linux/loop.h --- linux-2.6.30-gentoo-r1-orig/include/linux/loop.h 2009-06-10 12:05:27 +0900 +++ linux-2.6.30-gentoo-r1/include/linux/loop.h 2009-06-16 19:22:50 +0900 @@ -10,6 +10,8 @@ * permitted under the GNU General Public License. */ +#include + #define LO_NAME_SIZE 64 #define LO_KEY_SIZE 32 @@ -153,13 +155,13 @@ * IOCTL commands --- we will commandeer 0x4C ('L') */ -#define LOOP_SET_FD 0x4C00 -#define LOOP_CLR_FD 0x4C01 -#define LOOP_SET_STATUS 0x4C02 -#define LOOP_GET_STATUS 0x4C03 -#define LOOP_SET_STATUS64 0x4C04 -#define LOOP_GET_STATUS64 0x4C05 -#define LOOP_CHANGE_FD 0x4C06 -#define LOOP_SET_CAPACITY 0x4C07 +#define LOOP_SET_FD _IO('L',0) +#define LOOP_CLR_FD _IO('L',1) +#define LOOP_SET_STATUS _IO('L',2) +#define LOOP_GET_STATUS _IO('L',3) +#define LOOP_SET_STATUS64 _IO('L',4) +#define LOOP_GET_STATUS64 _IO('L',5) +#define LOOP_CHANGE_FD _IO('L',6) +#define LOOP_SET_CAPACITY _IO('L',7) #endif