⚲
Project
General
Profile
Sign in
Home
Projects
Help
Search
:
DragonFlyBSD
All Projects
DragonFlyBSD
Overview
Activity
Roadmap
Issues
Documents
Files
Repository
Download (398 Bytes)
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
;
}
« Previous
1
2
3
Next »
(1-1/3)
Loading...