Commit 904534a
committed
Add comments: logic behind comparison compare_mntns()
Add comments:
Compare the inode number of mount namespace, to see if target process is in a
different mount namespace from lsof process: return 0 (false) means mount
namespace is the same, and return 1 (true) means mount namespace is different.
Note that legacy linux kernel (e.g. linux-2.6) might not have this mount
namespace path, so makes this case return 0 (false) and acts as old days.
Signed-off-by: Jones Syue <jones_syue@askey.com>1 parent ce96381 commit 904534a
1 file changed
Lines changed: 27 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1361 | 1361 | | |
1362 | 1362 | | |
1363 | 1363 | | |
1364 | | - | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
1365 | 1375 | | |
1366 | 1376 | | |
1367 | 1377 | | |
1368 | 1378 | | |
1369 | 1379 | | |
1370 | 1380 | | |
1371 | 1381 | | |
| 1382 | + | |
| 1383 | + | |
| 1384 | + | |
| 1385 | + | |
1372 | 1386 | | |
1373 | 1387 | | |
1374 | 1388 | | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
1375 | 1393 | | |
1376 | 1394 | | |
1377 | 1395 | | |
1378 | 1396 | | |
1379 | 1397 | | |
1380 | 1398 | | |
1381 | 1399 | | |
| 1400 | + | |
| 1401 | + | |
| 1402 | + | |
| 1403 | + | |
1382 | 1404 | | |
1383 | | - | |
| 1405 | + | |
1384 | 1406 | | |
| 1407 | + | |
| 1408 | + | |
| 1409 | + | |
1385 | 1410 | | |
1386 | 1411 | | |
1387 | 1412 | | |
| |||
0 commit comments