]> git.hungrycats.org Git - linux/commit
[PATCH] uml: fix major & minor handling in hostfs
authorPaolo \'Blaisorblade\' Giarrusso <blaisorblade_spam@yahoo.it>
Fri, 8 Oct 2004 00:35:15 +0000 (17:35 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 8 Oct 2004 00:35:15 +0000 (17:35 -0700)
commitd2a604d8008e75847313b710540ca7e934423283
treef429f5525cde9c6ef4bd630a49bfe73e0be930a0
parent73e6b2295608bd522200504e33e9cc17de53f54e
[PATCH] uml: fix major & minor handling in hostfs

Currently hostfs passes the rdev value from stat() on the host as rdev
value to return to stat() on the guest; but we cannot pass rdev as is
because glibc and the kernel disagree about its definition.  So we must
decode it in a major/minor couple with glibc macros and re-encode it in
kernelspace code.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/hostfs/hostfs.h
fs/hostfs/hostfs_kern.c
fs/hostfs/hostfs_user.c