Skip to content

Btrfs-progs: partial mkfs/convert, error handling, cleanups

David Sterba linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest13 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13btrfs-progs: pass OPEN_CTREE flags as unsignedbtrfstune.c cmds-check.c disk-io.c +1 more+12 -121 reply
2/13btrfs-progs: make superblock reading/scanning api more genericchunk-recover.c cmds-filesystem.c disk-io.c +5 more+38 -240 replies
3/13btrfs-progs: introduce signature for a partially set up filesystemctree.h utils.c+12 -10 replies
4/13btrfs-progs: mkfs: do not scan partially initialized devicesmkfs.c+9 -60 replies
5/13btrfs-progs: two staged filesystem creationbtrfs-convert.c ctree.h disk-io.c +3 more+59 -121 reply
6/13btrfs-progs: mkfs: return errors from block group creation functionsmkfs.c+48 -270 replies
7/13btrfs-progs: mkfs: improve error handling in main()mkfs.c+35 -140 replies
8/13btrfs-progs: mkfs: improve error handling in recow_rootsmkfs.c+30 -120 replies
9/13btrfs-progs: document all btrfs_open_ctree_flagsdisk-io.h+25 -160 replies
10/13btrfs-progs: mkfs: switch BUG_ON to error handling in traverse_directorymkfs.c+6 -10 replies
11/13btrfs-progs: mkfs: handle and report transaction commit failuresmkfs.c+15 -30 replies
12/13btrfs-progs: mkfs: help and usage now to to stdoutmkfs.c+19 -190 replies
13/13btrfs-progs: mkfs: clean up make_imagemkfs.c+2 -50 replies

Reviews trailers per patch

2 of 13 patches have a Reviewed-by or Acked-by.

PatchAnand Jain
1/13R-b
2/13
3/13
4/13
5/13R-b
6/13
7/13
8/13
9/13
10/13
11/13
12/13
13/13

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/13] Btrfs-progs: partial mkfs/convert, error handling, cleanups

Hi,

this series mainly improves error handling in mkfs and convert, plus the collaterals. There were too many BUG_ONs, now there are 0 in mkfs.c. There's still work to do, eg. in the generic functions.

The improvement idea is to be able to safely leave around an unfinished filesystem image, so the error handling is just "report & return". The signature is intentionally bogus until the entire filesystem is constructed.

This is now in devel.

David Sterba (13):
btrfs-progs: pass OPEN_CTREE flags as unsigned
btrfs-progs: make superblock reading/scanning api more generic
btrfs-progs: introduce signature for a partially set up filesystem
btrfs-progs: mkfs: do not scan partially initialized devices
btrfs-progs: two staged filesystem creation
btrfs-progs: mkfs: return errors from block group creation functions
btrfs-progs: mkfs: improve error handling in main()
btrfs-progs: mkfs: improve error handling in recow_roots
btrfs-progs: document all btrfs_open_ctree_flags
btrfs-progs: mkfs: switch BUG_ON to error handling in
traverse_directory
btrfs-progs: mkfs: handle and report transaction commit failures
btrfs-progs: mkfs: help and usage now to to stdout
btrfs-progs: mkfs: clean up make_image

 btrfs-convert.c   |   7 +-
 btrfstune.c       |   2 +-
 chunk-recover.c   |   8 +-
 cmds-check.c      |   2 +-
 cmds-filesystem.c |   2 +-
 ctree.h           |   7 ++
 disk-io.c         |  66 ++++++++++-----
 disk-io.h         |  69 ++++++++++-----
 mkfs.c            | 246 ++++++++++++++++++++++++++++++++++++------------------
 super-recover.c   |   3 +-
 utils.c           |  22 +++--
 volumes.c         |   4 +-
 volumes.h         |   2 +-
 13 files changed, 299 insertions(+), 141 deletions(-)
Signature · 1 line
2.7.1