| 4689 | #endif |
| 4690 | |
| 4691 | static void |
| 4692 | unmount_or_warn(struct mount *mp) |
| 4693 | { |
| 4694 | int error; |
| 4695 | |
| 4696 | error = dounmount(mp, MNT_FORCE, curthread); |
| 4697 | if (error != 0) { |
| 4698 | printf("unmount of %s failed (", mp->mnt_stat.f_mntonname); |
| 4699 | if (error == EBUSY) |
| 4700 | printf("BUSY)\n"); |
| 4701 | else |
| 4702 | printf("%d)\n", error); |
| 4703 | } |
| 4704 | } |
| 4705 | |
| 4706 | /* |
| 4707 | * Unmount all filesystems. The list is traversed in reverse order |
no test coverage detected