diff options
author | Daniel Mack <daniel@caiaq.de> | 2009-07-02 11:15:47 -0400 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2009-07-05 11:45:19 -0400 |
commit | 7fcd9c3ecbf09c0a77db7ba01aac75b32fb79a93 (patch) | |
tree | de3fc29704e9f6301f6c67ffd352f9eb524538fd /fs/ubifs/super.c | |
parent | 1fb8bd01ed0af0d0577e010e8c6b4234de583fa6 (diff) |
UBIFS: allow more than one volume to be mounted
UBIFS uses a bdi device per volume, but does not care to hand out unique
names to each of them. This causes an error when trying to mount more
than one volumes. Append the UBI volume and device ID to avoid that.
[Amended a bit by Artem Bityutskiy]
Signed-off-by: Daniel Mack <daniel@caiaq.de>
Cc: Artem Bityutskiy <dedekind@infradead.org>
Cc: Adrian Hunter <ext-adrian.hunter@nokia.com>
Cc: linux-mtd@lists.infradead.org
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'fs/ubifs/super.c')
-rw-r--r-- | fs/ubifs/super.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c index 3507d0ed542d..26d2e0d80465 100644 --- a/fs/ubifs/super.c +++ b/fs/ubifs/super.c | |||
@@ -1976,7 +1976,8 @@ static int ubifs_fill_super(struct super_block *sb, void *data, int silent) | |||
1976 | err = bdi_init(&c->bdi); | 1976 | err = bdi_init(&c->bdi); |
1977 | if (err) | 1977 | if (err) |
1978 | goto out_close; | 1978 | goto out_close; |
1979 | err = bdi_register(&c->bdi, NULL, "ubifs"); | 1979 | err = bdi_register(&c->bdi, NULL, "ubifs_%d_%d", |
1980 | c->vi.ubi_num, c->vi.vol_id); | ||
1980 | if (err) | 1981 | if (err) |
1981 | goto out_bdi; | 1982 | goto out_bdi; |
1982 | 1983 | ||