From: Artem Bityutskiy <dedekind@infradead.org>
To: dfoley <dfoley@telus.net>
Cc: linux-mtd@lists.infradead.org,
Adrian Hunter <ext-adrian.hunter@nokia.com>
Subject: Re: ubifs mount size
Date: Mon, 18 Aug 2008 13:45:17 +0300 [thread overview]
Message-ID: <1219056317.18027.2.camel@sauron> (raw)
In-Reply-To: <48A9186D.3050902@nokia.com>
Hi,
On Mon, 2008-08-18 at 09:36 +0300, Adrian Hunter wrote:
> dfoley wrote:
> > Does this look right (info below) ?
> > I create a 55MiB volume, but df only shows 33968KiB
> > This is linux-2.6.24.4. I've also used linux-2.6.27-rc3.
> >
> >
> > root@tsi-sa2410:~# ubimkvol /dev/ubi1 -N root -s 55MiB
> > Volume ID 0, size 3755 LEBs (57676800 bytes, 55.0 MiB), LEB size 15360
> > bytes (15.0 KiB), dynamic, name "root", alignment 1
> > root@tsi-sa2410:~# mount -t ubifs ubi1:root /mnt/linux2-root/
> > UBIFS: default file-system created
> > UBIFS: background thread "ubifs_bgt1_0" started, PID 930
> > UBIFS: mounted UBI device 1, volume 0, name "root"
> > UBIFS: file system size: 57292800 bytes (55950 KiB, 54 MiB, 3730 LEBs)
> > UBIFS: journal size: 2872320 bytes (2805 KiB, 2 MiB, 187 LEBs)
> > UBIFS: default compressor: LZO
> > UBIFS: media format 4, latest format 4
> > root@tsi-sa2410:~# df
> > Filesystem 1k-blocks Used Available Use% Mounted on
> > rootfs 8059 5284 2366 69% /
> > /dev/root 8059 5284 2366 69% /
> > /dev/root 8059 5284 2366 69% /dev/.static/dev
> > ubi1:root 33968 0 31204 0% /mnt/linux2-root
>
> Yes this looks right. UBIFS doesn't really know how much data can be fitted
> in the file system, so it makes a worst case estimate.
In practice you will be able to fit more than what df shows. I will
write a corresponding FAQ entry which will explain the issue later.
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
next prev parent reply other threads:[~2008-08-18 10:46 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-16 4:16 ubifs mount size dfoley
2008-08-18 6:36 ` Adrian Hunter
2008-08-18 10:45 ` Artem Bityutskiy [this message]
2008-08-18 23:32 ` Bruce_Leonard
2008-08-21 17:24 ` Artem Bityutskiy
2008-08-21 17:26 ` Artem Bityutskiy
2008-08-25 15:51 ` Artem Bityutskiy
2008-09-10 2:48 ` Dallas Foley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1219056317.18027.2.camel@sauron \
--to=dedekind@infradead.org \
--cc=dfoley@telus.net \
--cc=ext-adrian.hunter@nokia.com \
--cc=linux-mtd@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox