From: Artem Bityutskiy <dedekind1@gmail.com>
To: Konstantin Tokarev <annulen@yandex.ru>
Cc: "linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>
Subject: Re: Find & remove orphan LEBs from UBIFS partition
Date: Fri, 17 Jan 2014 17:06:01 +0200 [thread overview]
Message-ID: <1389971161.31307.112.camel@sauron.fi.intel.com> (raw)
In-Reply-To: <104461389971034@web1j.yandex.ru>
On Fri, 2014-01-17 at 19:03 +0400, Konstantin Tokarev wrote:
>
> 17.01.2014, 18:59, "Artem Bityutskiy" <dedekind1@gmail.com>:
> > On Fri, 2014-01-17 at 13:39 +0400, Konstantin Tokarev wrote:
> >
> >> Hi all,
> >>
> >> How can I find and remove LEBs which don't correspond to known files
> >> using internal API of UBIFS?
> >> AFAIU, somethinng like this is done on recovery during mount, but in
> >> my case superblock is not dirty, so I'd like to force cleanup with
> >> custom mount option.
> >
> > Are you trying to do something like 'secure deletion' ? Disclosing your
> > intentions would help understanding what you need. I do not quite
> > understand.
> >
> > Do you want to fine all LEBs which do not contain anything useful like
> > data or meta-data, and unmap them?
>
> Yes, exactly.
Check 'fixup_free_space', it iterates over all useful ones, the rest can
be unmapped.
--
Best Regards,
Artem Bityutskiy
prev parent reply other threads:[~2014-01-17 15:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-17 9:39 Find & remove orphan LEBs from UBIFS partition Konstantin Tokarev
2014-01-17 14:59 ` Artem Bityutskiy
2014-01-17 15:03 ` Konstantin Tokarev
2014-01-17 15:06 ` Artem Bityutskiy [this message]
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=1389971161.31307.112.camel@sauron.fi.intel.com \
--to=dedekind1@gmail.com \
--cc=annulen@yandex.ru \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.