search for: xfs_admin

Displaying 20 results from an estimated 61 matches for "xfs_admin".

2016 Jan 26
1
[PATCH] xfs_admin: do not set lazycounter in tests not checking that
This flag cannot be disabled (yet) in V5 xfs filesystems; since 2 out of the current 3 tests of xfs_admin check other results than that flag, avoid setting it when not needed. --- generator/actions.ml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generator/actions.ml b/generator/actions.ml index 9ea5736..14902e7 100644 --- a/generator/actions.ml +++ b/generator/actions.ml @@...
2012 Aug 20
1
[PATCH] xfs: add new api xfs_admin
Add new api xfs_admin to change parameters of an XFS filesystem. Signed-off-by: Wanlong Gao <gaowanlong at cn.fujitsu.com> --- daemon/xfs.c | 78 ++++++++++++++++++++++++++++++++++++++++++ generator/generator_actions.ml | 21 ++++++++++++ gobject/Makefile.inc | 6 ++-- guestfs-releas...
2009 Apr 24
1
Mount Openfiler created XFS volumes
...known to them). I fired up a Centos box with this hdd. I then did yum install kmod-xfs.i686 xfsdump.i386 dmapi xfsprogs and it wnt through. But when I try to mount this volume mount -t xfs /dev/hdd1 /mnt/test I get the error: mount: /dev/hdd1 already mounted or /mnt/test busy I then try xfs_admin -l /dev/hdd1 The results being: xfs_admin: unexpected XFS SB magic number 0x00000000 xfs_admin: read failed: Invalid argument xfs_admin: data size check failed cache_node_purge: refcount was 1, not zero (node=0xa058670) xfs_admin: cannot read root inode (22) label = "(null)" Sure I...
2012 Aug 21
1
[PATCH] xfs: add a new api xfs_repair
...f --git a/generator/generator_actions.ml b/generator/generator_actions.ml index 562f785..98a894c 100644 --- a/generator/generator_actions.ml +++ b/generator/generator_actions.ml @@ -9453,6 +9453,29 @@ Devices that are mounted cannot be modified. Administrators must unmount filesystems before C<xfs_admin> can convert parameters. A number of parameters of a mounted filesystem can be examined and modified using the C<xfs_growfs>." }; + { defaults with + name = "xfs_repair"; + style = RErr, [Device "device"], [OBool "imgfile"; OBool "forcelog...
2016 Jan 26
2
[PATCH] daemon: fold xfs_admin stdout to stderr
...we only print something on failure, fold stdout to stderr so we can see everything on failure. --- daemon/xfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/xfs.c b/daemon/xfs.c index abc2736..7f72e6a 100644 --- a/daemon/xfs.c +++ b/daemon/xfs.c @@ -537,7 +537,7 @@ do_xfs_admin (const char *device, ADD_ARG (argv, i, device); ADD_ARG (argv, i, NULL); - r = commandv (NULL, &err, argv); + r = commandvf (NULL, &err, COMMAND_FLAG_FOLD_STDOUT_ON_STDERR, argv); if (r == -1) { reply_with_error ("%s: %s", device, err); return -1; -- 2.5.0
2016 Oct 21
3
VM disk question
I have VMPlayer 12 running a CentOS 7 disk. Works fine. However I wish to change the disk from UUID booting (fstab) to the old style LABEL. (so I can export it and use on another machine). fdisk -l /dev/sda Disk /dev/sda: 21.5 GB, 21474836480 bytes, 41943040 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes
2015 Jun 24
0
[PATCH 3/5] uuid: use newly introduced do_xfs_admin_uuid of xfs
...+++++++ 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/daemon/daemon.h b/daemon/daemon.h index eeb4ff7..aba6ef2 100644 --- a/daemon/daemon.h +++ b/daemon/daemon.h @@ -261,6 +261,7 @@ extern int copy_xattrs (const char *src, const char *dest); /*-- in xfs.c --*/ /* Documented in xfs_admin(8). */ #define XFS_LABEL_MAX 12 +extern int do_xfs_admin_uuid (const char *device, const char *uuid); /*-- debug-bmap.c --*/ extern char *debug_bmap (const char *subcmd, size_t argc, char *const *const argv); diff --git a/daemon/uuids.c b/daemon/uuids.c index 8626884..0520113 100644 --- a/daem...
2015 Jun 30
0
[PATCH v4 3/7] uuid: use newly introduced xfs_set_uuid of xfs
Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com> --- v3: rename do_xfs_admin_uuid to xfs_set_uuid daemon/daemon.h | 1 + daemon/uuids.c | 12 +----------- daemon/xfs.c | 7 +++++++ 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/daemon/daemon.h b/daemon/daemon.h index dd7798c..cbe8ada 100644 --- a/daemon/daemon.h +++ b/daemon/daemon.h @@ -262,6 +262,...
2016 Oct 21
0
VM disk question
...support VM formats (VBox, VHD and VMWare) easily? Is this an xfs filesystem or an ext4 filesystem? I could be wrong, but I suspect that e2label would only work on an ext2/3/4 filesystem. The default filesystem in RHEL/CentOS 7 is xfs. It looks like you can check labels on xfs filesystems with xfs_admin -l </path/to/filesystem> and you can set a label on an xfs filesystem with xfs_admin -L "<your label>" </path/to/filesystem> If you run "blkid" on your system it will give you all labels for all disks connected to your machine for any filesystem types that...
2017 May 05
2
CentOS 7 cloned VM cannot boot
On 5/5/2017 9:10 ??, Marcelo Roccasalva wrote: > xfs_admin -U restore /dev/vdal Bingo! I had to unmount the boot partition (being in Troubleshooting mode), run the above command, which provided a new UUID and at last the partition was recognized as xfs. (I forgot to copy the output to paste here.) I then mounted the boot partition again, chrooted, gru...
2017 May 05
4
CentOS 7 cloned VM cannot boot
On 5/5/2017 8:29 ??, Nikolaos Milas wrote: > I am very puzzled with "unknown filesystem". After more googling, I found this bug report with a very recent fix: https://bugzilla.redhat.com/show_bug.cgi?id=1399487 It seems to me that this may be relevant in our case. If so, may it be that this fix has not been rolled out to CentOS repos yet? What is your opinion and your
2014 Nov 12
1
[PATCH] daemon: check xfs label lengths (RHBZ#1162966).
...n.h b/daemon/daemon.h index 0ccbc9e..f442efd 100644 --- a/daemon/daemon.h +++ b/daemon/daemon.h @@ -253,6 +253,10 @@ extern void main_loop (int sock) __attribute__((noreturn)); /*-- in xattr.c --*/ extern int copy_xattrs (const char *src, const char *dest); +/*-- in xfs.c --*/ +/* Documented in xfs_admin(8). */ +#define XFS_LABEL_MAX 12 + /* ordinary daemon functions use these to indicate errors * NB: you don't need to prefix the string with the current command, * it is added automatically by the client-side RPC stubs. diff --git a/daemon/labels.c b/daemon/labels.c index f417c57..cfcb4df 1...
2015 Jun 23
2
[PATCH] uuid: add support to change uuid of btrfs partition
...+++++++++++++++-- generator/actions.ml | 4 ++++ 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/daemon/uuids.c b/daemon/uuids.c index 06b33e9..c18cb55 100644 --- a/daemon/uuids.c +++ b/daemon/uuids.c @@ -30,6 +30,7 @@ GUESTFSD_EXT_CMD(str_tune2fs, tune2fs); GUESTFSD_EXT_CMD(str_xfs_admin, xfs_admin); GUESTFSD_EXT_CMD(str_swaplabel, swaplabel); +GUESTFSD_EXT_CMD(str_btrfstune, btrfstune); static int e2uuid (const char *device, const char *uuid) @@ -91,6 +92,21 @@ swapuuid (const char *device, const char *uuid) return 0; } +static int +btrfsuuid (const char *device, const...
2015 Jun 24
10
[PATCH 0/5] uuid: add btrfs uuid change support and some rework
...support of this. - uuids.c did a lot of deplicated work for changing uuid of fs. Use existed functions. -- Introduce new API: btrfstune_set_uuid_random Chen Hanxiao (5): uuid: add support to change uuid of btrfs partition uuid: use existed function of ext2 uuid: use newly introduced do_xfs_admin_uuid of xfs uuid: use existed do_mkswap_U New API: btrfstune_set_uuid_random daemon/btrfs.c | 81 ++++++++++++++++++++++++++++++++++++++++++ daemon/daemon.h | 6 ++++ daemon/uuids.c | 44 +++++------------------ daemon/xfs.c |...
2015 Jul 08
5
[PATCH v2 0/4] labels: rework
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 |...
2015 Jul 08
9
[PATCH 0/5] labels: rework
We should use the existing function from specific fs, if not, move it to specific fs files. Chen Hanxiao (5): label: move btrfslabel to btrfs.c label: move e2label to ext2.c and call it locally label: move ntfslabel to ntfs.c label: use existing do_xfs_admin for xfslabel labels: return ENOTSUP if could not set label for specific fs daemon/btrfs.c | 16 +++++++++++ daemon/daemon.h | 4 +++ daemon/ext2.c | 29 +++++++++++++++---- daemon/labels.c | 89 ++++----------------------------------------------------- daemon/ntfs.c | 19 ++++++++++++ dae...
2015 Jun 26
5
[PATCH v3 0/4] uuid: add btrfs uuid change support and some rework
- Btrfs-progs v4.1 introduced new feature of changing uuid of btrfs partition. This patch add support of this. - uuids.c did a lot of deplicated work for changing uuid of fs. Use existing functions. v3: set errno if feature is not available. Chen Hanxiao (4): uuid: add support to change uuid of btrfs partition uuid: use existing function of ext2 uuid: use newly introduced
2012 Oct 14
1
[PATCH] NEW API: mktemp
...(3)>" }; + ] (* Non-API meta-commands available only in guestfish. diff --git a/gobject/Makefile.inc b/gobject/Makefile.inc index 0a168f4..95a4b6b 100644 --- a/gobject/Makefile.inc +++ b/gobject/Makefile.inc @@ -81,7 +81,8 @@ guestfs_gobject_headers= \ include/guestfs-gobject/optargs-xfs_admin.h \ include/guestfs-gobject/optargs-hivex_open.h \ include/guestfs-gobject/optargs-xfs_repair.h \ - include/guestfs-gobject/optargs-mke2fs.h + include/guestfs-gobject/optargs-mke2fs.h \ + include/guestfs-gobject/optargs-mktemp.h guestfs_gobject_sources= \ src/session.c \ @@ -144,4 +1...
2017 Mar 12
0
[PATCH v4 3/7] New API: yara_load
...the end of the list diff --git a/gobject/Makefile.inc b/gobject/Makefile.inc index 8fa8599d3..b0ebf15d9 100644 --- a/gobject/Makefile.inc +++ b/gobject/Makefile.inc @@ -111,7 +111,8 @@ guestfs_gobject_headers= \ include/guestfs-gobject/optargs-umount_local.h \ include/guestfs-gobject/optargs-xfs_admin.h \ include/guestfs-gobject/optargs-xfs_growfs.h \ - include/guestfs-gobject/optargs-xfs_repair.h + include/guestfs-gobject/optargs-xfs_repair.h \ + include/guestfs-gobject/optargs-yara_load.h guestfs_gobject_sources= \ src/session.c \ @@ -203,4 +204,5 @@ guestfs_gobject_sources= \ sr...
2015 Jun 30
13
[PATCH v4 0/7] uuid: add btrfs uuid change support and set_uuid_random
- Btrfs-progs v4.1 introduced new feature of changing uuid of btrfs partition. This patch add support of this. - Introduce set_uuid_random - uuids.c did a lot of deplicated work for changing uuid of fs. Use existing functions. v4: introduce get_random_uuid improve testcases squash internal API patches v3.1: fix typos v3: set errno if feature is not available. Chen Hanxiao (7):