Project

General

Profile

Bug #2768 » test.c

shamaz, 01/15/2015 03:37 AM

 
#include <stdio.h>
#include <sys/mount.h>
#include <sys/mountctl.h>

int main (int argc, char *argv[])
{
if (argc != 2) {
fprintf (stderr, "Usage: ./test mount_point\n");
return 0;
}
struct export_args export;
export.ex_flags = MNT_DELEXPORT;
int res = mountctl (argv[1], MOUNTCTL_SET_EXPORT, -1, &export, sizeof (export), NULL, 0);
printf ("%i\n", res);
return res;
}
(1-1/3)