Actual usage of files in ubifs

Ricard Wanderlof ricard.wanderlof at axis.com
Fri Sep 15 15:08:53 PDT 2017


On Tue, 12 Sep 2017, Richard Weinberger wrote:

> > > But first I'd like to know more about the use-case and where to draw the
> > > border. e.g. If a file as xattrs, do you also account them? UBIFS
> > > modules xattrs via inodes. So, they have a rather huge space overhead.
> > 
> > In our specific situation the use case is basically that given a specific
> > set files (in the root file system), how much flash is actually needed,
> > also considering that different types of files have different compression
> > ratios depending on the content. I.e. a large text file might not hurt as
> > much as a large binary since the former compresses better.
> > 
> > So primarily it is the total amount needed for the whole file system, but
> > it quickly comes down how much individual files consume. In our case it's
> > not necessary to do the operation on a running file system, but in the
> > more general case that might be more useful.
> > 
> > I would think that this is something that is known somewhere inside
> > mkfs.ubifs, or is the information too convoluted to be easily extractable?
> 
> Adding this to mkfs.ubifs shouldn't be a big deal.
> And I agree your use case makes sense.
> 
> Do you want to send me a patch? :)

Yes, that would be very much appreciated!

/Ricard
-- 
Ricard Wolf Wanderlöf                           ricardw(at)axis.com
Axis Communications AB, Lund, Sweden            www.axis.com
Phone +46 46 272 2016                           Fax +46 46 13 61 30



More information about the linux-mtd mailing list