tags 437720 -pending thanks Theodore Tso, le Sat 15 Dec 2007 21:01:20 -0500, a écrit : > Thanks for the patch. It's been applied into the git repository.
Cool, thanks! However, we still have a problem on the resize part. On GNU/Hurd (and also on some BSD variants IIRC), the _IOW macro encodes the type in the actual ioctl number, so that it can't be completely arbitrary. The attached patch defines what is needed for struct ext2_new_group_input to work. Samuel
diff --git a/lib/ext2fs/ext2_fs.h b/lib/ext2fs/ext2_fs.h index 36e7c8c..2aba67f 100644 --- a/lib/ext2fs/ext2_fs.h +++ b/lib/ext2fs/ext2_fs.h @@ -290,6 +290,7 @@ struct ext2_new_group_input { __u16 reserved_blocks; /* Number of reserved blocks in this group */ __u16 unused; /* Number of reserved GDT blocks in group */ }; +#define _IOT_ext2_new_group_input _IOT (_IOTS(__u32), 5, _IOTS(__u16), 2, 0, 0) #define EXT2_IOC_GETFLAGS _IOR('f', 1, long) #define EXT2_IOC_SETFLAGS _IOW('f', 2, long)