diff options
author | kay.sievers@vrfy.org <kay.sievers@vrfy.org> | 2005-02-09 08:43:18 +0100 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 23:27:41 -0700 |
commit | 6d56416665863dc2b4fb107dbdc779e4791bdf9e (patch) | |
tree | 906017c79653eda2bfa421733c4901fa9e51b440 /namedev_parse.c | |
parent | c1ab046124ebef3c82950b91ccfd1678d9f7fe5b (diff) |
[PATCH] create /block/*/range count of partitons for all_partitions
Diffstat (limited to 'namedev_parse.c')
-rw-r--r-- | namedev_parse.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/namedev_parse.c b/namedev_parse.c index 5bd59d83f2..7b5b963020 100644 --- a/namedev_parse.c +++ b/namedev_parse.c @@ -250,7 +250,7 @@ static int namedev_parse(const char *filename, void *data) if (attr != NULL) { if (strstr(attr, ATTR_PARTITIONS) != NULL) { dbg_parse("creation of partition nodes requested"); - dev.partitions = PARTITIONS_COUNT; + dev.partitions = DEFAULT_PARTITIONS_COUNT; } if (strstr(attr, ATTR_IGNORE_REMOVE) != NULL) { dbg_parse("remove event should be ignored"); @@ -338,3 +338,14 @@ int namedev_init(void) return retval; } + +void namedev_close(void) +{ + struct config_device *dev; + + list_for_each_entry(dev, &config_device_list, node) { + list_del(&dev->node); + free(dev); + } +} + |