Blame SOURCES/autofs-5.0.9-amd-lookup-add-cdfs-fs-type.patch

306fa1
autofs-5.0.8 - amd lookup add cdfs fs type
306fa1
306fa1
From: Ian Kent <raven@themaw.net>
306fa1
306fa1
306fa1
---
306fa1
 include/parse_amd.h |    1 +
306fa1
 modules/amd_parse.y |    3 +++
306fa1
 modules/amd_tok.l   |    2 +-
306fa1
 modules/parse_amd.c |    1 +
306fa1
 4 files changed, 6 insertions(+), 1 deletion(-)
306fa1
306fa1
diff --git a/include/parse_amd.h b/include/parse_amd.h
306fa1
index 4015e9f..401aadb 100644
306fa1
--- a/include/parse_amd.h
306fa1
+++ b/include/parse_amd.h
306fa1
@@ -28,6 +28,7 @@
306fa1
 #define AMD_MOUNT_TYPE_XFS	0x00000200
306fa1
 #define AMD_MOUNT_TYPE_JFS	0x00000400
306fa1
 #define AMD_MOUNT_TYPE_CACHEFS	0x00000800
306fa1
+#define AMD_MOUNT_TYPE_CDFS	0x00001000
306fa1
 #define AMD_MOUNT_TYPE_MASK	0x0000ffff
306fa1
 
306fa1
 #define AMD_ENTRY_CUT		0x00010000
306fa1
diff --git a/modules/amd_parse.y b/modules/amd_parse.y
306fa1
index 1d4a0a3..87e3309 100644
306fa1
--- a/modules/amd_parse.y
306fa1
+++ b/modules/amd_parse.y
306fa1
@@ -269,6 +269,9 @@ option_assignment: MAP_OPTION OPTION_ASSIGN FS_TYPE
306fa1
 			   !strcmp($3, "ext4")) {
306fa1
 			entry.flags |= AMD_MOUNT_TYPE_EXT;
306fa1
 			entry.type = amd_strdup($3);
306fa1
+		} else if (!strcmp($3, "cdfs")) {
306fa1
+			entry.flags |= AMD_MOUNT_TYPE_CDFS;
306fa1
+			entry.type = amd_strdup("iso9660");
306fa1
 		} else if (!strcmp($3, "jfs") ||
306fa1
 			   !strcmp($3, "nfsx") ||
306fa1
 			   !strcmp($3, "program") ||
306fa1
diff --git a/modules/amd_tok.l b/modules/amd_tok.l
306fa1
index 8a6d40c..10b1963 100644
306fa1
--- a/modules/amd_tok.l
306fa1
+++ b/modules/amd_tok.l
306fa1
@@ -99,7 +99,7 @@ MNTOPT		(opts|addopts|remopts)
306fa1
 FSOPTS		(rhost|rfs|dev|cachedir|mount|unmount|umount|delay)
306fa1
 CHEOPT		(mapdefault|none|inc|re|regexp|all)
306fa1
 MAPTYPE		(file|nis|nisplus|ldap|hesiod|exec|ndbm|passwd|union)
306fa1
-FSTYPE_LOCAL	(link|linkx|lofs|ext2|ext3|ext4|xfs|jfs|cachefs)
306fa1
+FSTYPE_LOCAL	(link|linkx|lofs|ext2|ext3|ext4|xfs|jfs|cdfs|cachefs)
306fa1
 FSTYPE_NET	(nfs|nfsx|nfsl|host)
306fa1
 FSTYPE		(auto|program|direct|lustre|{FSTYPE_LOCAL}|{FSTYPE_NET})
306fa1
 
306fa1
diff --git a/modules/parse_amd.c b/modules/parse_amd.c
306fa1
index bc53b1d..fa0f75d 100644
306fa1
--- a/modules/parse_amd.c
306fa1
+++ b/modules/parse_amd.c
306fa1
@@ -1286,6 +1286,7 @@ static int amd_mount(struct autofs_point *ap, const char *name,
306fa1
 
306fa1
 	case AMD_MOUNT_TYPE_EXT:
306fa1
 	case AMD_MOUNT_TYPE_XFS:
306fa1
+	case AMD_MOUNT_TYPE_CDFS:
306fa1
 		if (!validate_generic_options(ap->logopt, fstype, entry))
306fa1
 			return 1;
306fa1
 		ret = do_generic_mount(ap, name, entry, entry->dev, flags);