diff options
author | Jeff Mahoney <jeffm@suse.com> | 2017-08-22 18:30:43 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-09-08 16:15:05 +0200 |
commit | 99340c2ef762f3da92e4bb4ce3b2f6d5fc6ef9d0 (patch) | |
tree | 7c2850d5157e53d6445a61457f8746f965e37e07 /configure.ac | |
parent | cbaa70b265aa4161d92fe87fde586e1660905be2 (diff) |
btrfs-progs: convert: add support for converting reiserfs
This patch adds support to convert reiserfs file systems in-place to btrfs.
It will convert extended attribute files to btrfs extended attributes,
translate ACLs, coalesce tails that consist of multiple items into one item,
and convert tails that are too big into indirect files.
This requires that libreiserfscore 3.6.27 be available.
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 30055f85..ac924422 100644 --- a/configure.ac +++ b/configure.ac @@ -106,7 +106,7 @@ AC_SUBST([DISABLE_BTRFSCONVERT]) AC_ARG_WITH([convert], AS_HELP_STRING([[[]--with-convert[[=auto]]]], [built-in filesystems for convert (default: auto) -supported (comma separated list): ext2]), +supported (comma separated list): ext2,reiserfs]), [], [with_convert=auto] ) @@ -120,6 +120,7 @@ fi convertfs= BTRFSCONVERT_EXT2=0 +BTRFSCONVERT_REISERFS=0 if test "x$enable_convert" = xyes; then if test "x$with_convert" = "xauto" || echo "$with_convert" | grep -q "ext2"; then PKG_CHECK_MODULES(EXT2FS, [ext2fs >= 1.42],, @@ -131,11 +132,23 @@ if test "x$enable_convert" = xyes; then convertfs="${convertfs:+$convertfs,}ext2" BTRFSCONVERT_EXT2=1 fi + if test "x$with_convert" = "xauto"; then + PKG_CHECK_MODULES(REISERFS, [reiserfscore >= 3.6.27], + [BTRFSCONVERT_REISERFS=1], + [BTRFSCONVERT_REISERFS=0]) + elif echo "$with_convert" | grep -q "reiserfs"; then + PKG_CHECK_MODULES(REISERFS, [reiserfscore >= 3.6.27], + [BTRFSCONVERT_REISERFS=1],[]) + fi + if test "$BTRFSCONVERT_REISERFS" = 1; then + convertfs="${convertfs:+$convertfs,}reiserfs" + fi fi AC_SUBST([BTRFSCONVERT_EXT2]) +AC_SUBST([BTRFSCONVERT_REISERFS]) # catch typos -tmp=$(echo "$with_convert" | sed -e 's/auto//' | sed -e 's/ext2//' | sed -e 's/,\+/,/') +tmp=$(echo "$with_convert" | sed -e 's/auto//' | sed -e 's/ext2//' | sed -e 's/reiserfs//' | sed -e 's/,\+/,/') if ! test "x$tmp" = "x"; then AC_MSG_ERROR([unknown tokens for --with-convert: $tmp]) fi |