Whamcloud - gitweb
LU-8855 llite: return small device numbers for compat stat() 77/23877/3
authorJohn L. Hammond <john.hammond@intel.com>
Mon, 21 Nov 2016 15:22:52 +0000 (09:22 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 24 Jan 2017 05:22:58 +0000 (05:22 +0000)
commitf1af92e7fc249fd4ce54f0c61b04388a3b0da6bb
tree5e389c4deaf7b48ce4b6063a2141ef7387cc36ff
parentc6383473e74262eaf8f822dcb6b28b22b130f364
LU-8855 llite: return small device numbers for compat stat()

The compat_sys_*stat*() syscalls will fail unless the devices majors
and minors are both less than 256. So in ll_getattr_it(), if we are in
32 bit compat mode then coerce the device numbers in to the expected
format.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: I1bf13258902e13c76b9ebf3476fd1767712de0b3
Reviewed-on: https://review.whamcloud.com/23877
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/llite/file.c