[PATCH resend] UBIFS: return -EINVAL if first log leb is empty

Richard Weinberger richard at nod.at
Mon Feb 2 00:20:03 PST 2015

Am 02.02.2015 um 04:10 schrieb hujianyang:
> Another problem. Someone <markus.heininger at online.de> asked:
> "UBIFS: Is it possible to get the compressed size of a file?"
> I think it's an interesting problem. Actually we used to separate an UBI
> device into several volumes for space management reason. So could we
> realize the compressed size getting mechanism and import *quota* to UBIFS
> itself.

You can get the actual size by accumulating the UBIFS data node sizes.
But this means that you have to load the actual data node which is rather
expensive. I had a short chat with Artem on this, we agreed that a nice solution
would be to store the actual size in an inode. But that is a non-trivial change


More information about the linux-mtd mailing list