Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 93065
b: refs/heads/master
c: cbd8a9d
h: refs/heads/master
i:
  93063: 491e555
v: v3
  • Loading branch information
Jan Altenberg authored and Artem Bityutskiy committed Apr 17, 2008
1 parent d5f9e88 commit a37bea1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6e0c84e37e809e79313043385148020ceb760496
refs/heads/master: cbd8a9d2cd6f576ca41022599341bbd8be1b0b27
5 changes: 3 additions & 2 deletions trunk/drivers/mtd/ubi/gluebi.c
Original file line number Diff line number Diff line change
Expand Up @@ -291,11 +291,12 @@ int ubi_create_gluebi(struct ubi_device *ubi, struct ubi_volume *vol)
/*
* In case of dynamic volume, MTD device size is just volume size. In
* case of a static volume the size is equivalent to the amount of data
* bytes, which is zero at this moment and will be changed after volume
* update.
* bytes.
*/
if (vol->vol_type == UBI_DYNAMIC_VOLUME)
mtd->size = vol->usable_leb_size * vol->reserved_pebs;
else
mtd->size = vol->used_bytes;

if (add_mtd_device(mtd)) {
ubi_err("cannot not add MTD device\n");
Expand Down

0 comments on commit a37bea1

Please sign in to comment.