[ofa-general] Re: [PATCH] for-2.6.23 ib/umad: add partition support
Michael S. Tsirkin
mst at dev.mellanox.co.il
Thu Jun 21 22:12:01 PDT 2007
> Quoting Roland Dreier <rdreier at cisco.com>:
> Subject: Re: [PATCH] for-2.6.23 ib/umad: add partition support
>
> > We made a mistake of not validating the offset field otherwise we could
> > have used it, too: as it is I think apps just use "write" so
> > there's a useless byte counter in that field.
>
> which offset field? I don't see the string "offset" anywhere in ib_user_mad.h
static ssize_t ib_umad_write(struct file *filp, const char __user *buf,
size_t count, loff_t *pos)
We could have asked all users to use pwrite with offset 0, and then other I
think pos field would be useful for other things like versioning. As it is,
people use write to pass in MADs, so I'm not sure what does pos point to.
--
MST
More information about the general
mailing list