Re: struct statfs::f_type too small to carry magic values

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Apr 19, 2013 at 2:16 PM, Martin Schwidefsky
<schwidefsky@xxxxxxxxxx> wrote:
> On Fri, 19 Apr 2013 13:44:53 +0200 Kay Sievers <kay@xxxxxxxx> wrote:
>> It's pretty confusing to sort out such issues in userspace, and it
>> would be nice if it could be fixed to work without weird casting.
>
> Well, the easiest fix seem to be to convert the "int f_type" to an
> "unsigned int f_type".

That would be nice if that is possible, yeah.

It would allow users to use long types without jumping through weird
things nobody expects from magic constants. :)

> We would still face problems if the magic values
> won't fit into 32 bit though.

Right, but I guess that will not happen.

Kay
--
To unsubscribe from this list: send the line "unsubscribe linux-s390" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Kernel Development]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Info]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Linux Media]     [Device Mapper]

  Powered by Linux