Hi all : there is a problem on libguestfs-1.29.40 after command :make check libguestfs: error: mkfs_btrfs: /dev/vda1: device /dev/vda1 is too small (must be at least 256 MB) FAIL: test_btrfs_image_0 3/515 test_btrfstune_enable_skinny_metadata_extent_refs_0 libguestfs: error: btrfstune_enable_skinny_metadata_extent_refs: /dev/vda1: btrfstune: invalid option -- 'x' usage: btrfstune [options] device -S value enable/disable seeding FAIL: test_btrfstune_enable_skinny_metadata_extent_refs_0 4/515 test_btrfstune_enable_extended_inode_refs_0 libguestfs: error: btrfstune_enable_extended_inode_refs: /dev/vda1: btrfstune: invalid option -- 'r' usage: btrfstune [options] device -S value enable/disable seeding FAIL: test_btrfstune_enable_extended_inode_refs_0 5/515 test_btrfstune_seeding_0 libguestfs: error: btrfstune_seeding: /dev/vda1: btrfstune: invalid option -- 'f' I found two patch https://www.redhat.com/archives/libguestfs/2012-May/msg00018.htmlvirt-make-fs Fix estimation when making btrfs (but there is no virt-make-fs under tools) https://www.redhat.com/archives/libguestfs/2012-April/msg00008.html New API: mkfs-btrfs for creating btrfs filesystems ( It was patched in libguestfs-1.29.40) It seems stupid, but I can't find the answer, I am sorry
Hi, That’s a check of btrfs filesystem. see the commit of btrfs-progs: http://git.kernel.org/cgit/linux/kernel/git/kdave/btrfs-progs.git/commit/?id=18e2663db3e18d4506b6fe583ad93fc83235fca9 btrfs-progs: Add minimum device size check Btrfs has global block reservation, so even mkfs.btrfs can execute without problem, there is still a possibility that the filesystem can't be mounted. For example when mkfs.btrfs on a 8M file on x86_64 platform, kernel will refuse to mount due to ENOSPC, since system block group takes 4M and mixed block group takes 4M, and global block reservation will takes all the 4M from mixed block group, which makes btrfs unable to create uuid tree. This patch will add minimum device size check before actually mkfs. The minimum size calculation uses a simplified one: minimum_size_for_each_dev = 2 * (system block group + global block rsv) and global block rsv = leafsize << 10 From: libguestfs-bounces@redhat.com [mailto:libguestfs-bounces@redhat.com] On Behalf Of fu lirong Sent: Tuesday, May 19, 2015 10:01 AM To: libguestfs@redhat.com Subject: [Libguestfs] libguestfs error: mkfs_btrfs Hi all : there is a problem on libguestfs-1.29.40 after command :make check libguestfs: error: mkfs_btrfs: /dev/vda1: device /dev/vda1 is too small (must be at least 256 MB) FAIL: test_btrfs_image_0 3/515 test_btrfstune_enable_skinny_metadata_extent_refs_0 libguestfs: error: btrfstune_enable_skinny_metadata_extent_refs: /dev/vda1: btrfstune: invalid option -- 'x' usage: btrfstune [options] device -S value enable/disable seeding FAIL: test_btrfstune_enable_skinny_metadata_extent_refs_0 4/515 test_btrfstune_enable_extended_inode_refs_0 libguestfs: error: btrfstune_enable_extended_inode_refs: /dev/vda1: btrfstune: invalid option -- 'r' usage: btrfstune [options] device -S value enable/disable seeding FAIL: test_btrfstune_enable_extended_inode_refs_0 5/515 test_btrfstune_seeding_0 libguestfs: error: btrfstune_seeding: /dev/vda1: btrfstune: invalid option -- 'f' I found two patch https://www.redhat.com/archives/libguestfs/2012-May/msg00018.htmlvirt-make-fs Fix estimation when making btrfs (but there is no virt-make-fs under tools) https://www.redhat.com/archives/libguestfs/2012-April/msg00008.html New API: mkfs-btrfs for creating btrfs filesystems ( It was patched in libguestfs-1.29.40) It seems stupid, but I can't find the answer, I am sorry
On Tue, May 19, 2015 at 10:00:34AM +0800, fu lirong wrote:> libguestfs: error: btrfstune_enable_skinny_metadata_extent_refs: /dev/vda1: > btrfstune: invalid option -- 'x' > usage: btrfstune [options] device > -S value enable/disable seeding > FAIL: test_btrfstune_enable_skinny_metadata_extent_refs_0 > 4/515 test_btrfstune_enable_extended_inode_refs_0 > libguestfs: error: btrfstune_enable_extended_inode_refs: /dev/vda1: > btrfstune: invalid option -- 'r' > usage: btrfstune [options] device > -S value enable/disable seeding > FAIL: test_btrfstune_enable_extended_inode_refs_0 > 5/515 test_btrfstune_seeding_0 > libguestfs: error: btrfstune_seeding: /dev/vda1: btrfstune: invalid option > -- 'f'I think these are caused because your version of btrfstune is too old. If you want to skip individual tests, you can define skip variables, eg: export SKIP_TEST_BTRFSTUNE_ENABLE_SKINNY_METADATA_EXTENT_REFS_0=1 export SKIP_TEST_BTRFSTUNE_ENABLE_EXTENDED_INODE_REFS_0=1 export SKIP_TEST_BTRFSTUNE_SEEDING_0=1 make check To see what SKIP_* variables are available, you have to examine the test programs. In this case, look at `tests/c-api/tests.c'. We have a fairly large collection of SKIP_* variables defined when building on Fedora: http://pkgs.fedoraproject.org/cgit/libguestfs.git/tree/libguestfs.spec#n879 Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 100 libraries supported. http://fedoraproject.org/wiki/MinGW
Maybe Matching Threads
- [PATCH v2 0/3] btrfs: add support to btrfstune
- Re: [PATCH v2 0/3] btrfs: add support to btrfstune
- [PATCH 0/4] btrfs: add support to btrfstune
- [PATCH] uuid: add support to change uuid of btrfs partition
- Re: [PATCH v3.1 1/9] uuid: add support to change uuid of btrfs partition