[Libguestfs] [PATCH v2 0/4] labels: rework

Chen Hanxiao chenhanxiao at cn.fujitsu.com
Wed Jul 8 09:34:41 UTC 2015


We should use the existing function from specific fs,
if not, move it to specific fs files.

Chen Hanxiao (4):
  labels: move e2label to ext2.c and call it directly
  labels: move ntfslabel to ntfs.c
  labels: use existing do_xfs_admin for xfslabel
  labels: return ENOTSUP if could not set label for specific fs

 daemon/daemon.h      |  2 ++
 daemon/ext2.c        | 23 ++++++++++++-----
 daemon/labels.c      | 70 ++++------------------------------------------------
 daemon/ntfs.c        | 19 ++++++++++++++
 daemon/xfs.c         |  7 ++++++
 generator/actions.ml |  3 +++
 6 files changed, 53 insertions(+), 71 deletions(-)

-- 
2.1.0




More information about the Libguestfs mailing list