Deleted Added
full compact
extattrctl.c (93928) extattrctl.c (95018)
1/*-
1/*-
2 * Copyright (c) 1999-2001 Robert N. M. Watson
2 * Copyright (c) 1999-2002 Robert N. M. Watson
3 * All rights reserved.
4 *
5 * This software was developed by Robert Watson for the TrustedBSD Project.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 *
3 * All rights reserved.
4 *
5 * This software was developed by Robert Watson for the TrustedBSD Project.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 *
28 * $FreeBSD: head/usr.sbin/extattrctl/extattrctl.c 93928 2002-04-06 05:02:54Z des $
28 * $FreeBSD: head/usr.sbin/extattrctl/extattrctl.c 95018 2002-04-19 01:42:55Z rwatson $
29 */
30/*
31 * Developed by the TrustedBSD Project.
32 * Support for file system extended attribute.
33 */
34
35#include <sys/types.h>
36#include <sys/uio.h>

--- 17 unchanged lines hidden (view full) ---

54void usage(void);
55
56void
57usage()
58{
59
60 fprintf(stderr,
61 "usage:\n"
29 */
30/*
31 * Developed by the TrustedBSD Project.
32 * Support for file system extended attribute.
33 */
34
35#include <sys/types.h>
36#include <sys/uio.h>

--- 17 unchanged lines hidden (view full) ---

54void usage(void);
55
56void
57usage()
58{
59
60 fprintf(stderr,
61 "usage:\n"
62 " extattrctl start [path]\n"
63 " extattrctl stop [path]\n"
64 " extattrctl initattr [-f] [-p path] [attrsize] [attrfile]\n"
65 " extattrctl showattr [attrfile]\n"
66 " extattrctl enable [path] [attrnamespace] [attrname] [attrfile]\n"
67 " extattrctl disable [path] [attrnamespace] [attrname]\n");
62 " extattrctl start path\n"
63 " extattrctl stop path\n"
64 " extattrctl initattr [-f] [-p path] attrsize attrfile\n"
65 " extattrctl showattr attrfile\n"
66 " extattrctl enable path attrnamespace attrname attrfile\n"
67 " extattrctl disable path attrnamespace attrname\n");
68 exit(-1);
69}
70
71long
72num_inodes_by_path(char *path)
73{
74 struct statfs buf;
75 int error;

--- 184 unchanged lines hidden ---
68 exit(-1);
69}
70
71long
72num_inodes_by_path(char *path)
73{
74 struct statfs buf;
75 int error;

--- 184 unchanged lines hidden ---