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

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