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)
committerMartin Pitt <mpitt@debian.org>
Sun, 27 Jan 2019 21:33:07 +0000 (21:33 +0000)
commit6dd569b40be1e2f2fd3b576aa5b645f077b60a73
tree4b566f074c22aed14b13264c478b7f351118845f
parent08eb28cf22e4f7c2fb5b4d10dacbd25186ab64b6
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