[Libguestfs] [PATCH 0/5] btrfs: add API for btrfs filesystem, check and scrub

Hu Tao
Fri, 26 Dec 2014 08:17:44 -0000

Hi,

There is one problem: btrfs_filesystem_set_label just doesnt work,
giving error message:

  libguestfs: error: btrfs_filesystem_set_label: /: ERROR: unable to set label
Bad address

I'm almost sure the patch has no problem, but can't figure out
what's
the cause. So patch 5 is only for review.

Other APIs have no problem.

Regards,
Hu

Hu Tao (5):
  New API: btrfs_scrub
  New API: btrfs_check
  New API: btrfs_filesystem_get_label
  New API: add btrfs_filesystem_defragment
  New API: btrfs_filesystem_set_label

 daemon/btrfs.c       | 153 +++++++++++++++++++++++++++++++++++++++++++++++++++
 generator/actions.ml |  82 +++++++++++++++++++++++++++
 src/MAX_PROC_NR      |   2 +-
 3 files changed, 236 insertions(+), 1 deletion(-)

--
2.2.1