Lines 196-208
Link Here
|
196 |
it != end_itr; |
196 |
it != end_itr; |
197 |
++it ) |
197 |
++it ) |
198 |
{ |
198 |
{ |
199 |
if(it->filename() == "root") |
199 |
if(it->path().filename().string() == "root") |
200 |
continue; |
200 |
continue; |
201 |
if(lstat(it->string().c_str(), &st)) |
201 |
if(lstat(it->path().filename().c_str(), &st)) |
202 |
continue; |
202 |
continue; |
203 |
if(st.st_rdev == get()->devno) |
203 |
if(st.st_rdev == get()->devno) |
204 |
{ |
204 |
{ |
205 |
get()->deviceName = it->filename(); |
205 |
get()->deviceName = it->path().filename().string(); |
206 |
get()->devicePath = "/dev/" + get()->deviceName; |
206 |
get()->devicePath = "/dev/" + get()->deviceName; |
207 |
return 0; |
207 |
return 0; |
208 |
} |
208 |
} |
Lines 225-231
Link Here
|
225 |
// the minor number of virtual filesystems are allocated dynamically in function set_anon_super() in fs/super.c |
225 |
// the minor number of virtual filesystems are allocated dynamically in function set_anon_super() in fs/super.c |
226 |
// for convenience set deviceName and devicePath to a common name |
226 |
// for convenience set deviceName and devicePath to a common name |
227 |
get()->deviceName = "virtual file system"; |
227 |
get()->deviceName = "virtual file system"; |
228 |
get()->devicePath = get()->mount_point.filename(); |
228 |
get()->devicePath = get()->mount_point.filename().string(); |
229 |
return 0; |
229 |
return 0; |
230 |
case 2: |
230 |
case 2: |
231 |
ss << "fd"; |
231 |
ss << "fd"; |