Pass separate dev_t var to device_path_parse_major_minor
authorYunQiang Su <syq@debian.org>
Tue, 25 Dec 2018 11:01:17 +0000 (19:01 +0800)
committerMichael Biebl <biebl@debian.org>
Sat, 12 Jan 2019 20:49:44 +0000 (20:49 +0000)
commit63e364ebf31874f65ac0a8f77c3f0c77cf4974b7
tree5fa9668fb8cdfc20d5f3da847f23781112b03f3d
parent8613518fa8fd6167d5a62f365c261e7a3fc9fae3
Pass separate dev_t var to device_path_parse_major_minor

MIPS/O32's st_rdev member of struct stat is unsigned long, which
is 32bit, while dev_t is defined as 64bit, which make some problems
in device_path_parse_major_minor.

Don't pass st.st_rdev, st_mode to device_path_parse_major_minor,
while pass 2 seperate variables. The result of stat is alos copied
out into these 2 variables. Fixes: #11247

(cherry picked from commit f5855697aa19fb92637e72ab02e4623abe77f288)
(cherry picked from commit a0d4edf0e7fe6674c44258a73e0722494d659976)

Gbp-Pq: Name Pass-separate-dev_t-var-to-device_path_parse_major_minor.patch
src/core/cgroup.c