diff options
author | pjd <pjd@FreeBSD.org> | 2009-05-29 19:18:41 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2009-05-29 19:18:41 +0000 |
commit | d747431e06c903f9e8638bd48d28505a79749c9f (patch) | |
tree | c09c007b5c95c0fcfadd855c6aebe7de77bd18e3 /sbin/mksnap_ffs/Makefile | |
parent | 13ace3be9e1c583dacf2c7cdc67c99eaa3be8d07 (diff) | |
download | FreeBSD-src-d747431e06c903f9e8638bd48d28505a79749c9f.zip FreeBSD-src-d747431e06c903f9e8638bd48d28505a79749c9f.tar.gz |
- Move from mount(2) to nmount(2). This should allow to convert MNT_SNAPSHOT
flag from a mount flag to FS-specific flag.
- Simplify usage. Instead of 'mksnap_ffs /mnt/foo /mnt/foo/snap' allow to
give only one argument: 'mksnap_ffs /mnt/foo/snap'. Old usage is also
accepted for now.
- Add an example of how to mount a snapshot.
Diffstat (limited to 'sbin/mksnap_ffs/Makefile')
-rw-r--r-- | sbin/mksnap_ffs/Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sbin/mksnap_ffs/Makefile b/sbin/mksnap_ffs/Makefile index 3c08f56..40b56b4 100644 --- a/sbin/mksnap_ffs/Makefile +++ b/sbin/mksnap_ffs/Makefile @@ -1,8 +1,13 @@ # $FreeBSD$ +.PATH: ${.CURDIR}/../mount + PROG= mksnap_ffs +SRCS= mksnap_ffs.c getmntopts.c MAN= mksnap_ffs.8 +CFLAGS+=-I${.CURDIR}/../mount + .if defined(NOSUID) BINMODE=550 .else |