* btrfs-convert: whats minimum free space requirement?
@ 2017-06-09 5:19 Lakshmipathi.G
[not found] ` <6588ee10-82fe-56aa-3079-955d97a674fd@cn.fujitsu.com>
0 siblings, 1 reply; 3+ messages in thread
From: Lakshmipathi.G @ 2017-06-09 5:19 UTC (permalink / raw)
To: Qu Wenruo, dsterba, btrfs
Hi.
Just wanted to check whether do we have any numbers
on whats the minimum free space requirement on
source file system for btrfs-convert to work?
ex: Like 5% of ext3/4 free space is needed for
btrfs-convert to succeed?
Cheers.
Lakshmipathi.G
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: btrfs-convert: whats minimum free space requirement?
[not found] ` <6588ee10-82fe-56aa-3079-955d97a674fd@cn.fujitsu.com>
@ 2017-06-09 7:28 ` Lakshmipathi.G
[not found] ` <bda5cebd-0683-53f9-6edb-b7f3093b1ed9@cn.fujitsu.com>
0 siblings, 1 reply; 3+ messages in thread
From: Lakshmipathi.G @ 2017-06-09 7:28 UTC (permalink / raw)
To: Qu Wenruo; +Cc: dsterba, btrfs
On Fri, Jun 09, 2017 at 01:35:12PM +0800, Qu Wenruo wrote:
> >ex: Like 5% of ext3/4 free space is needed for
> >btrfs-convert to succeed?
>
> That's hard to say.
>
> It's not only dependent on how much free space is here, but also how
> continuous the free space is.
>
> In convert, it needs the following continuous space at least:
>
> 1) 64K for temporary btrfs super block
> 2) 4M for system chunk
> 3) 32M for metadata chunk.
>
> Further more, we want to keep chunks at reasonable size, that's to say we
> want each used data space on old fs is covered by a chunk >= 32M.
>
> For worst case, if the free space in old fs is so scattered, either we can't
> find continuous for sys/meta chunk, or used data space is so scattered that
> we can't find free space after rounding up data chunks, then we can't do
> convert.
>
> Thanks,
> Qu
Thanks for the details, Qu.
I was thinking about adding a free-space check (based on total blocks/free block
stat from source superblock) before btrfs-convert begins, looks like its more
complex than i thought.
Cheers.
Lakshmipathi.G
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: btrfs-convert: whats minimum free space requirement?
[not found] ` <bda5cebd-0683-53f9-6edb-b7f3093b1ed9@cn.fujitsu.com>
@ 2017-06-09 13:02 ` Lakshmipathi.G
0 siblings, 0 replies; 3+ messages in thread
From: Lakshmipathi.G @ 2017-06-09 13:02 UTC (permalink / raw)
To: Qu Wenruo; +Cc: dsterba, btrfs
On Fri, Jun 09, 2017 at 03:38:31PM +0800, Qu Wenruo wrote:
> >I was thinking about adding a free-space check (based on total blocks/free block
> >stat from source superblock) before btrfs-convert begins, looks like its more
> >complex than i thought.
>
> BTW, it's already done, since it's complex, btrfs-convert will try to
> calculate it early on, so even it fails to find the needed space, it will
> not screw up the old fs.
>
> Thanks,
> Qu
> >
oh, I didn't realize that, thanks. Will test/try with little free space and check the
returning error messages.
Cheers.
Lakshmipathi.G
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-06-09 13:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-09 5:19 btrfs-convert: whats minimum free space requirement? Lakshmipathi.G
[not found] ` <6588ee10-82fe-56aa-3079-955d97a674fd@cn.fujitsu.com>
2017-06-09 7:28 ` Lakshmipathi.G
[not found] ` <bda5cebd-0683-53f9-6edb-b7f3093b1ed9@cn.fujitsu.com>
2017-06-09 13:02 ` Lakshmipathi.G
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox