search for: optgroup_ntfsprogs_avail

Displaying 8 results from an estimated 8 matches for "optgroup_ntfsprogs_avail".

2015 Jan 15
1
[PATCH 2/2] daemon: use ntfslabel(1) to get ntfs labels
.../daemon/blkid.c +++ b/daemon/blkid.c @@ -82,6 +82,8 @@ do_vfs_label (const mountable_t *mountable) if (type) { if (STREQ (type, "btrfs") && optgroup_btrfs_available ()) return btrfs_get_label (mountable->device); + if (STREQ (type, "ntfs") && optgroup_ntfsprogs_available ()) + return ntfs_get_label (mountable->device); } return get_blkid_tag (mountable->device, "LABEL"); diff --git a/daemon/daemon.h b/daemon/daemon.h index 4ee1a40..9405ce6 100644 --- a/daemon/daemon.h +++ b/daemon/daemon.h @@ -265,6 +265,9 @@ extern char *debug_bmap...
2015 Jan 14
2
[PATCH] daemon: use btrfs(1) to get btrfs labels
blkid(1) (or actually, libblkid) seems to handle file system labels up to 127 characters. Considering that btrfs labels can be up to 255 characters, this means long labels are not read correctly (i.e. get truncated) by blkid. Get the file system type, and if btrfs is available invoke `btrfs filesystem` to get the label of btrfs file systems. --- daemon/blkid.c | 6 ++++++ daemon/btrfs.c | 24
2012 Aug 30
2
[PATCH v2] daemon: collect list of called external commands
...X_ARGS 64 +GUESTFSD_EXT_CMD(str_ntfs3g_probe, ntfs-3g.probe); +GUESTFSD_EXT_CMD(str_ntfsresize, ntfsresize); +GUESTFSD_EXT_CMD(str_ntfsfix, ntfsfix); + int optgroup_ntfs3g_available (void) { - return prog_exists ("ntfs-3g.probe"); + return prog_exists (str_ntfs3g_probe); } int optgroup_ntfsprogs_available (void) { - return prog_exists ("ntfsresize"); + return prog_exists (str_ntfsresize); } int @@ -51,7 +55,7 @@ do_ntfs_3g_probe (int rw, const char *device) rw_flag = rw ? "-w" : "-r"; - r = commandr (NULL, &err, "ntfs-3g.probe", rw_flag,...
2012 Aug 30
1
[PATCH] collect list of called external commands
...MAX_ARGS 64 +GUESTFS_EXT_CMD(str_ntfs3g_probe, ntfs-3g.probe); +GUESTFS_EXT_CMD(str_ntfsresize, ntfsresize); +GUESTFS_EXT_CMD(str_ntfsfix, ntfsfix); + int optgroup_ntfs3g_available (void) { - return prog_exists ("ntfs-3g.probe"); + return prog_exists (str_ntfs3g_probe); } int optgroup_ntfsprogs_available (void) { - return prog_exists ("ntfsresize"); + return prog_exists (str_ntfsresize); } int @@ -51,7 +55,7 @@ do_ntfs_3g_probe (int rw, const char *device) rw_flag = rw ? "-w" : "-r"; - r = commandr (NULL, &err, "ntfs-3g.probe", rw_flag,...
2017 Jul 27
0
[PATCH v2] daemon: Remove GUESTFSD_EXT_CMD.
...be, ntfs-3g.probe); -GUESTFSD_EXT_CMD(str_ntfsresize, ntfsresize); -GUESTFSD_EXT_CMD(str_ntfsfix, ntfsfix); -GUESTFSD_EXT_CMD(str_ntfslabel, ntfslabel); - int optgroup_ntfs3g_available (void) { - return prog_exists (str_ntfs3g_probe); + return prog_exists ("ntfs3g.probe"); } int optgroup_ntfsprogs_available (void) { - return prog_exists (str_ntfsresize); + return prog_exists ("ntfsresize"); } char * @@ -56,7 +51,7 @@ ntfs_get_label (const char *device) char *out = NULL; size_t len; - r = command (&out, &err, str_ntfslabel, device, NULL); + r = command (&out,...
2017 Jul 24
0
[PATCH 2/2] daemon: Replace GUESTFSD_EXT_CMD with --print-external-commands.
...; +DECLARE_EXTERNAL_COMMANDS ("ntfs-3g.probe", + "ntfsresize", "ntfsfix", "ntfslabel") int optgroup_ntfs3g_available (void) { - return prog_exists (str_ntfs3g_probe); + return prog_exists ("ntfs3g.probe"); } int optgroup_ntfsprogs_available (void) { - return prog_exists (str_ntfsresize); + return prog_exists ("ntfsresize"); } char * @@ -56,7 +54,7 @@ ntfs_get_label (const char *device) char *out = NULL; size_t len; - r = command (&out, &err, str_ntfslabel, device, NULL); + r = command (&out,...
2017 Jul 27
3
[PATCH v2] daemon: Remove GUESTFSD_EXT_CMD.
This is a simpler patch that removes GUESTFSD_EXT_CMD completely.
2017 Jul 24
6
[PATCH 0/2] daemon: Replace GUESTFSD_EXT_CMD with --print-external-commands.
Replace GUESTFSD_EXT_CMD with a command line option ‘./guestfsd --print-external-commands’