File: parse_amd.h

package info (click to toggle)
autofs 5.1.9-1.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,724 kB
  • sloc: ansic: 36,118; yacc: 1,821; lex: 1,126; sh: 627; makefile: 541
file content (73 lines) | stat: -rw-r--r-- 2,119 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/* ----------------------------------------------------------------------- *
 *
 *  Copyright 2004-2006 Ian Kent <raven@themaw.net>
 *  Copyright 2013 Red Hat, Inc.
 *  All rights reserved.
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, Inc., 675 Mass Ave, Cambridge MA 02139,
 *  USA; either version 2 of the License, or (at your option) any later
 *  version; incorporated herein by reference.
 *
 * ----------------------------------------------------------------------- */

#ifndef PARSE_AMD_H
#define PARSE_AMD_H

#define AMD_MOUNT_TYPE_NONE	0x00000000
#define AMD_MOUNT_TYPE_AUTO	0x00000001
#define AMD_MOUNT_TYPE_NFS	0x00000002
#define AMD_MOUNT_TYPE_LINK	0x00000004
#define AMD_MOUNT_TYPE_HOST	0x00000008
#define AMD_MOUNT_TYPE_NFSL	0x00000010
#define AMD_MOUNT_TYPE_NFSX	0x00000020
#define AMD_MOUNT_TYPE_LINKX	0x00000040
#define AMD_MOUNT_TYPE_LOFS	0x00000080
#define AMD_MOUNT_TYPE_EXT	0x00000100
#define AMD_MOUNT_TYPE_UFS	0x00000200
#define AMD_MOUNT_TYPE_XFS	0x00000400
#define AMD_MOUNT_TYPE_JFS	0x00000800
#define AMD_MOUNT_TYPE_CACHEFS	0x00001000
#define AMD_MOUNT_TYPE_CDFS	0x00002000
#define AMD_MOUNT_TYPE_PROGRAM	0x00004000
#define AMD_MOUNT_TYPE_MASK	0x0000ffff

#define AMD_ENTRY_CUT		0x00010000
#define AMD_ENTRY_MASK		0x00ff0000

#define AMD_DEFAULTS_MERGE	0x01000000
#define AMD_DEFAULTS_RESET	0x02000000
#define AMD_DEFAULTS_MASK	0xff000000

#define AMD_CACHE_OPTION_NONE	0x0000
#define AMD_CACHE_OPTION_INC	0x0001
#define AMD_CACHE_OPTION_ALL	0x0002
#define AMD_CACHE_OPTION_REGEXP	0x0004
#define AMD_CACHE_OPTION_SYNC	0x8000

struct amd_entry {
	char *path;
	unsigned long flags;
	unsigned int cache_opts;
	char *type;
	char *map_type;
	char *pref;
	char *fs;
	char *rhost;
	char *rfs;
	char *dev;
	char *opts;
	char *addopts;
	char *remopts;
	char *sublink;
	char *mount;
	char *umount;
	struct selector *selector;
	struct list_head list;
};

int amd_parse_list(struct autofs_point *,
		   const char *, struct list_head *, struct substvar **);

#endif