Re: [PATCH 03/44 take 2] [UBI] user-space API header

2007-02-20 Thread Arnd Bergmann
On Tuesday 20 February 2007 14:07, Artem Bityutskiy wrote: > > > This structure is not suitable for an ioctl call, because it has > > incompatible layout between 32 and 64 bit processes. The easiest > > fix for this would be to change the 'name' field to an array > > instead of a pointer. > > Wil

Re: [PATCH 03/44 take 2] [UBI] user-space API header

2007-02-20 Thread Artem Bityutskiy
On Sat, 2007-02-17 at 22:27 +0100, Arnd Bergmann wrote: > On Saturday 17 February 2007 17:54, Artem Bityutskiy wrote: > > +struct ubi_mkvol_req { > > + int32_t vol_id; > > + int32_t alignment; > > + int64_t bytes; > > + int8_t vol_type; > > + int8_t padding[9]; > > +

Re: [PATCH 03/44 take 2] [UBI] user-space API header

2007-02-17 Thread Arnd Bergmann
On Saturday 17 February 2007 17:54, Artem Bityutskiy wrote: > +struct ubi_mkvol_req { > +   int32_t vol_id; > +   int32_t alignment; > +   int64_t bytes; > +   int8_t vol_type; > +   int8_t padding[9]; > +   int16_t name_len; > +   __user const char *name; > +} __attribu

[PATCH 03/44 take 2] [UBI] user-space API header

2007-02-17 Thread Artem Bityutskiy
diff -auNrp tmp-from/include/mtd/ubi-user.h tmp-to/include/mtd/ubi-user.h --- tmp-from/include/mtd/ubi-user.h 1970-01-01 02:00:00.0 +0200 +++ tmp-to/include/mtd/ubi-user.h 2007-02-17 18:07:26.0 +0200 @@ -0,0 +1,161 @@ +/* + * Copyright (c) International Business Machines C