Welcome to mirror list, hosted at ThFree Co, Russian Federation.

umount2.c « test - github.com/checkpoint-restore/criu.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a150f341d769ed06a121dd477b7d15216a29b1d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <stdio.h>
#include <sys/mount.h>

int main(int argc, char *argv[])
{
	if (argc < 2) {
		fprintf(stderr, "umount PATH\n");
		return 1;
	}
	if (umount2(argv[1], MNT_DETACH)) {
		fprintf(stderr, "umount %s: %m\n", argv[1]);
		return 1;
	}

	return 0;
}