|
Lines 596-602
check_mount (char *device_name)
Link Here
|
| 596 |
return; |
596 |
return; |
| 597 |
while ((mnt = getmntent (f)) != NULL) |
597 |
while ((mnt = getmntent (f)) != NULL) |
| 598 |
if (strcmp (device_name, mnt->mnt_fsname) == 0) |
598 |
if (strcmp (device_name, mnt->mnt_fsname) == 0) |
|
|
599 |
{ |
| 600 |
if ( (strcmp("subfs", mnt->mnt_type) != 0) && (strcmp("supermount", mnt->mnt_type) != 0) ) |
| 599 |
die ("%s contains a mounted file system."); |
601 |
die ("%s contains a mounted file system."); |
|
|
602 |
} |
| 600 |
endmntent (f); |
603 |
endmntent (f); |
| 601 |
} |
604 |
} |
| 602 |
|
605 |
|