All of lore.kernel.org
 help / color / mirror / Atom feed
From: Silvio Fricke <silvio.fricke@gmail.com>
To: linux-btrfs@vger.kernel.org
Cc: Silvio Fricke <silvio.fricke@gmail.com>
Subject: [PATCH 0/2] add progress indicator to btrfs-convert
Date: Sun,  9 Nov 2014 23:16:54 +0100	[thread overview]
Message-ID: <cover.1415549388.git.silvio.fricke@gmail.com> (raw)

Hi btrfs-ml,

I have tried a ext4->btrfs conversation of a 1TB (90%full) and have seen that
btrfs has no progressbar or something like that. Furthermore I have found [1] a
project idea for this.

I have tried a generic tasklet-based solution to print the status of the
convert-process. Maybe it looks good to you than please add this to your repo.
I have implemented this with the linux specific timerfd facility. To enable
this you haver to use the '-p' option.

I have noticed that a conversation doesn't show all inodes as converted at the
end. How can I improve this? A complete convert-process is showd here:

	sfr@devhost ./btrfs-progs % ./btrfs-convert -p /dev/sde4
	creating btrfs metadata.
	copy inodes [o] [        96/       106]
	creating ext2fs image file.
	cleaning up system chunk.
	conversion complete.

[1] https://btrfs.wiki.kernel.org/index.php/Project_ideas#btrfs-convert

Bye and thanks,
Silvio


Silvio Fricke (2):
  btrfs-progs: add task-utils
  btrfs-progs: convert: use task for progress indication of metadata
    creation

 Documentation/btrfs-convert.txt |   2 +
 Makefile                        |   6 +--
 btrfs-convert.c                 |  60 ++++++++++++++++++++++--
 task-util.c                     | 101 ++++++++++++++++++++++++++++++++++++++++
 task-util.h                     |  32 +++++++++++++
 5 files changed, 193 insertions(+), 8 deletions(-)
 create mode 100644 task-util.c
 create mode 100644 task-util.h

-- 
2.1.2


             reply	other threads:[~2014-11-09 22:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-09 22:16 Silvio Fricke [this message]
2014-11-09 22:16 ` [PATCH 1/2] btrfs-progs: add task-utils Silvio Fricke
2014-11-25 18:09   ` David Sterba
2014-11-09 22:16 ` [PATCH 2/2] btrfs-progs: convert: use task for progress indication of metadata creation Silvio Fricke
2014-11-25 18:18   ` David Sterba
2014-11-15  0:09 ` [PATCH 0/2] add progress indicator to btrfs-convert David Sterba

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=cover.1415549388.git.silvio.fricke@gmail.com \
    --to=silvio.fricke@gmail.com \
    --cc=linux-btrfs@vger.kernel.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.