Debian Codegraph @

include/parse_amd.h

raw
1 /* ----------------------------------------------------------------------- *
2 *
3 * Copyright 2004-2006 Ian Kent <[email protected]>
4 * Copyright 2013 Red Hat, Inc.
5 * All rights reserved.
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, Inc., 675 Mass Ave, Cambridge MA 02139,
10 * USA; either version 2 of the License, or (at your option) any later
11 * version; incorporated herein by reference.
12 *
13 * ----------------------------------------------------------------------- */
14
15 #ifndef PARSE_AMD_H
16 #define PARSE_AMD_H
17
18 #define AMD_MOUNT_TYPE_NONE 0x00000000
19 #define AMD_MOUNT_TYPE_AUTO 0x00000001
20 #define AMD_MOUNT_TYPE_NFS 0x00000002
21 #define AMD_MOUNT_TYPE_LINK 0x00000004
22 #define AMD_MOUNT_TYPE_HOST 0x00000008
23 #define AMD_MOUNT_TYPE_NFSL 0x00000010
24 #define AMD_MOUNT_TYPE_NFSX 0x00000020
25 #define AMD_MOUNT_TYPE_LINKX 0x00000040
26 #define AMD_MOUNT_TYPE_LOFS 0x00000080
27 #define AMD_MOUNT_TYPE_EXT 0x00000100
28 #define AMD_MOUNT_TYPE_UFS 0x00000200
29 #define AMD_MOUNT_TYPE_XFS 0x00000400
30 #define AMD_MOUNT_TYPE_JFS 0x00000800
31 #define AMD_MOUNT_TYPE_CACHEFS 0x00001000
32 #define AMD_MOUNT_TYPE_CDFS 0x00002000
33 #define AMD_MOUNT_TYPE_PROGRAM 0x00004000
34 #define AMD_MOUNT_TYPE_MASK 0x0000ffff
35
36 #define AMD_ENTRY_CUT 0x00010000
37 #define AMD_ENTRY_MASK 0x00ff0000
38
39 #define AMD_DEFAULTS_MERGE 0x01000000
40 #define AMD_DEFAULTS_RESET 0x02000000
41 #define AMD_DEFAULTS_MASK 0xff000000
42
43 #define AMD_CACHE_OPTION_NONE 0x0000
44 #define AMD_CACHE_OPTION_INC 0x0001
45 #define AMD_CACHE_OPTION_ALL 0x0002
46 #define AMD_CACHE_OPTION_REGEXP 0x0004
47 #define AMD_CACHE_OPTION_SYNC 0x8000
48
49 struct amd_entry {
50 char *path;
51 unsigned long flags;
52 unsigned int cache_opts;
53 char *type;
54 char *map_type;
55 char *pref;
56 char *fs;
57 char *rhost;
58 char *rfs;
59 char *dev;
60 char *opts;
61 char *addopts;
62 char *remopts;
63 char *sublink;
64 char *mount;
65 char *umount;
66 struct selector *selector;
67 struct list_head list;
68 };
69
70 int amd_parse_list(struct autofs_point *,
71 const char *, struct list_head *, struct substvar **);
72
73 #endif