MCPcopy Create free account
hub / github.com/F-Stack/f-stack / unmount_or_warn

Function unmount_or_warn

freebsd/kern/vfs_subr.c:4691–4704  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4689#endif
4690
4691static void
4692unmount_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

Callers 1

vfs_unmountallFunction · 0.85

Calls 2

dounmountFunction · 0.85
printfFunction · 0.70

Tested by

no test coverage detected