Message ID | 1450687321-12381-34-git-send-email-yangds.fnst@cn.fujitsu.com |
---|---|
State | Not Applicable |
Delegated to: | David Oberhollenzer |
Headers | show |
diff --git a/ubifs-utils/include/ubifs.h b/ubifs-utils/include/ubifs.h index 1678663..4a3212f 100644 --- a/ubifs-utils/include/ubifs.h +++ b/ubifs-utils/include/ubifs.h @@ -329,6 +329,7 @@ enum { * @vi: UBI volume information * * @gc_lnum: LEB number used for garbage collection + * @sbuf: a buffer of LEB size used by GC and replay for scanning * @rp_size: reserved pool size * * @space_bits: number of bits needed to record free or dirty space @@ -407,6 +408,7 @@ struct ubifs_info struct ubi_vol_info vi; int gc_lnum; + void *sbuf; long long rp_size; int space_bits; diff --git a/ubifs-utils/ubifs_dump/ubifs_dump.c b/ubifs-utils/ubifs_dump/ubifs_dump.c index fe2aaf4..4cbf755 100644 --- a/ubifs-utils/ubifs_dump/ubifs_dump.c +++ b/ubifs-utils/ubifs_dump/ubifs_dump.c @@ -991,6 +991,7 @@ static int dump() err = -ENOMEM; goto out; } + c->sbuf = leb_buf; err = dump_master(); if (err)