Skip to contentSkip to conversation

struct statfs::f_type too small to carry magic values

DISCUSSION Heiko Carstens 1 participant 1 message Apr 22, 2013 1 message not in the archive s390

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 10 lines · Kay Sievers
Quoted 6 lines · Martin Schwidefsky
Quoted 2 lines · On Fri, 19 Apr 2013 13:44:53 +0200 Kay Sievers <[email protected]> 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.

...and the patch below for glibc: