summaryrefslogtreecommitdiff
path: root/namedev.h
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2005-02-14 06:03:06 +0100
committerGreg KH <gregkh@suse.de>2005-04-26 23:36:12 -0700
commitfd9efc00a2e477423185c993b8ec4570ef3ee07d (patch)
tree08f7ddb6e135ef5101bf058cb91cdf293076a976 /namedev.h
parente57e7bc10811fa87e5775012da9e9b2fb67099c3 (diff)
[PATCH] introduce OPTIONS=ignore_device, ignore_remove, all_partitions" key
Here we move all possible options into a own key to make it possible to have options-only rules. The options on the NAME key are removed from the man page and will be removed from a future version of udev. For ignore rules, OPTIONS="ignore" should be used. The rule: SUBSYSTEM="block", SYSFS{removable}="1", OPTIONS="all_partitions" will create all partitions for a block device which is known to have removable media (a check for cdrom drives would be needed too).
Diffstat (limited to 'namedev.h')
-rw-r--r--namedev.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/namedev.h b/namedev.h
index 43381bfbd6..1e1a9bbc34 100644
--- a/namedev.h
+++ b/namedev.h
@@ -50,9 +50,11 @@ struct sysfs_class_device;
#define FIELD_OWNER "OWNER"
#define FIELD_GROUP "GROUP"
#define FIELD_MODE "MODE"
+#define FIELD_OPTIONS "OPTIONS"
-#define ATTR_PARTITIONS "all_partitions"
+#define ATTR_IGNORE_DEVICE "ignore_device"
#define ATTR_IGNORE_REMOVE "ignore_remove"
+#define ATTR_PARTITIONS "all_partitions"
#define MAX_SYSFS_PAIRS 5
@@ -77,11 +79,15 @@ struct config_device {
char name[NAME_SIZE];
char symlink[NAME_SIZE];
struct sysfs_pair sysfs_pair[MAX_SYSFS_PAIRS];
+
char owner[USER_SIZE];
char group[USER_SIZE];
mode_t mode;
+
int partitions;
+ int ignore_device;
int ignore_remove;
+
char config_file[NAME_SIZE];
int config_line;
};