search for: add_drive

Displaying 20 results from an estimated 413 matches for "add_drive".

2017 Apr 28
2
[PATCH] common/options: Change drv struct to store drive index instead of device name.
...gn/scan.c index 7ae8adf..26f77fd 100644 --- a/align/scan.c +++ b/align/scan.c @@ -236,7 +236,7 @@ main (int argc, char *argv[]) error (EXIT_FAILURE, 0, _("--uuid option cannot be used with -a or -d")); /* Add domains/drives from the command line (for a single guest). */ - add_drives (drvs, 'a'); + add_drives (drvs, 0); if (guestfs_launch (g) == -1) exit (EXIT_FAILURE); diff --git a/cat/cat.c b/cat/cat.c index 9fa8b4f..990fc90 100644 --- a/cat/cat.c +++ b/cat/cat.c @@ -236,7 +236,7 @@ main (int argc, char *argv[]) } /* Add drives, inspect and m...
2016 Sep 27
2
[PATCH] fish: drop leading '/' in nbd paths (RHBZ#1379585)
...ng one. --- fish/test-add-uri.sh | 8 +++++++- fish/uri.c | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/fish/test-add-uri.sh b/fish/test-add-uri.sh index 07b68c4..0264829 100755 --- a/fish/test-add-uri.sh +++ b/fish/test-add-uri.sh @@ -49,14 +49,20 @@ grep -sq 'add_drive "disk" "protocol:gluster" "server:tcp:example.com"' test-add $VG guestfish -x -a nbd://example.com </dev/null >test-add-uri.out 2>&1 grep -sq 'add_drive "" "protocol:nbd" "server:tcp:example.com"' test-add-uri.ou...
2015 Jun 26
3
Re: URI Handling Patch
...Ad additional checking for URIs, we have fish/test-add-uri.sh, which > fails with your patch. You might want to also add additional checks > with for query string http/https URIs. > The test is now failing on this case: + guestfish -x -a 'nbd:///export?socket=/sk' + grep -sq 'add_drive *"/export"* "protocol:nbd" "server:unix:/sk"' test-add-uri.out because I am now appending the query string as in: add_drive* "/export?socket=/sk"* "protocol:nbd" "server:unix:/sk" In which cases should the query string be appended an...
2013 Jul 23
2
Re: [libvirt-users] Resize errors with virt-resize/vgchange
...xpand /dev/sda1 --LV-expand /dev/mapper/prop-home >> > prop-1.img prop-expand.img >> > command line: virt-resize -d --expand /dev/sda1 --LV-expand >> > /dev/mapper/prop-home prop-1.img prop-expand.img >> > Examining prop-1.img ... >> > libguestfs: trace: add_drive "prop-1.img" "readonly:true" >> > libguestfs: trace: add_drive = 0 >> > libguestfs: trace: add_drive "prop-expand.img" "readonly:false" >> > libguestfs: trace: add_drive = 0 >> > libguestfs: trace: launch >> > libg...
2013 Jul 22
2
Resize errors with virt-resize/vgchange
...eceiving the following message from virt-resize: # virt-resize -d --expand /dev/sda1 --LV-expand /dev/mapper/prop-home prop-1.img prop-expand.img command line: virt-resize -d --expand /dev/sda1 --LV-expand /dev/mapper/prop-home prop-1.img prop-expand.img Examining prop-1.img ... libguestfs: trace: add_drive "prop-1.img" "readonly:true" libguestfs: trace: add_drive = 0 libguestfs: trace: add_drive "prop-expand.img" "readonly:false" libguestfs: trace: add_drive = 0 libguestfs: trace: launch libguestfs: trace: get_tmpdir libguestfs: trace: get_tmpdir = "/tmp&q...
2013 Jul 22
2
Resize errors with virt-resize/vgchange
...eceiving the following message from virt-resize: # virt-resize -d --expand /dev/sda1 --LV-expand /dev/mapper/prop-home prop-1.img prop-expand.img command line: virt-resize -d --expand /dev/sda1 --LV-expand /dev/mapper/prop-home prop-1.img prop-expand.img Examining prop-1.img ... libguestfs: trace: add_drive "prop-1.img" "readonly:true" libguestfs: trace: add_drive = 0 libguestfs: trace: add_drive "prop-expand.img" "readonly:false" libguestfs: trace: add_drive = 0 libguestfs: trace: launch libguestfs: trace: get_tmpdir libguestfs: trace: get_tmpdir = "/tmp&q...
2013 Jul 23
2
Re: [libvirt-users] Resize errors with virt-resize/vgchange
...home >> >> > prop-1.img prop-expand.img >> >> > command line: virt-resize -d --expand /dev/sda1 --LV-expand >> >> > /dev/mapper/prop-home prop-1.img prop-expand.img >> >> > Examining prop-1.img ... >> >> > libguestfs: trace: add_drive "prop-1.img" "readonly:true" >> >> > libguestfs: trace: add_drive = 0 >> >> > libguestfs: trace: add_drive "prop-expand.img" "readonly:false" >> >> > libguestfs: trace: add_drive = 0 >> >> > libguest...
2016 Sep 27
0
Re: [PATCH] fish: drop leading '/' in nbd paths (RHBZ#1379585)
...+++++- > fish/uri.c | 1 + > 2 files changed, 8 insertions(+), 1 deletion(-) > > diff --git a/fish/test-add-uri.sh b/fish/test-add-uri.sh > index 07b68c4..0264829 100755 > --- a/fish/test-add-uri.sh > +++ b/fish/test-add-uri.sh > @@ -49,14 +49,20 @@ grep -sq 'add_drive "disk" "protocol:gluster" "server:tcp:example.com"' test-add > $VG guestfish -x -a nbd://example.com </dev/null >test-add-uri.out 2>&1 > grep -sq 'add_drive "" "protocol:nbd" "server:tcp:example.com"' test-...
2015 Dec 02
2
RFC: arbitrary parameters for add_drive
...d a new optional argument "querystring". Another bug that I'm looking at (#1118305) is about setting initiator IQNs for iSCSI drives; a good solution IMHO would be add a new initiator-name parameter for this. Thinking more, I was realizing that keep adding more optional arguments to add_drive would make it a bit cluttered; for this, maybe a more flexible solution for this could be adding a single extra optional argument as hash-table (or list of "param=value") for all these rarely used parameters specific to different protocols. How would that look? Thanks, -- Pino Toscano
2013 Jul 22
1
Re: [libvirt-users] Resize errors with virt-resize/vgchange
...ailing list. > > # virt-resize -d --expand /dev/sda1 --LV-expand /dev/mapper/prop-home > prop-1.img prop-expand.img > command line: virt-resize -d --expand /dev/sda1 --LV-expand > /dev/mapper/prop-home prop-1.img prop-expand.img > Examining prop-1.img ... > libguestfs: trace: add_drive "prop-1.img" "readonly:true" > libguestfs: trace: add_drive = 0 > libguestfs: trace: add_drive "prop-expand.img" "readonly:false" > libguestfs: trace: add_drive = 0 > libguestfs: trace: launch > libguestfs: trace: get_tmpdir > libguestfs: tr...
2015 Dec 03
1
Re: RFC: arbitrary parameters for add_drive
...; Another bug that I'm looking at (#1118305) is about setting initiator > > IQNs for iSCSI drives; a good solution IMHO would be add a new > > initiator-name parameter for this. > > > > Thinking more, I was realizing that keep adding more optional arguments > > to add_drive would make it a bit cluttered; for this, maybe a more > > flexible solution for this could be adding a single extra optional > > argument as hash-table (or list of "param=value") for all these > > rarely used parameters specific to different protocols. How would that &gt...
2015 Jun 29
0
Re: URI Handling Patch
...run', you should see qemu complaining about something > like a 404 Error and the file not existing. After the unescape change the > above will start working. In this case, you can check in a simplier way: $ guestfish -x -a '/vhds/etc...' you'll see a "libguestfs: trace: add_drive ..." line contaning the actual add_drive call which guestfish will do to the library, and the parameters passed to it. Also, I'm thinking we should focus on making sure to have the proper query string for http(s) URIs to add_drive, we'll deal with the percent-encoding on the way. &gt...
2018 Nov 28
2
Fw: AD usres are not show in Domain Controller when apply setfacl command
...y to apply setfacl to share directory in domain controller My Problem is: I have one Samba AD [4.1] it work fine. I create common share folder in domain controller when try to apply ACL permission it show the following message [root at sambadc ~]# setfacl -m "u:RISHI\Administrator:rwx" /ADD_Drive/Samplesetfacl: Option -m: Invalid argument near character 3 After that i try to find usres id [root at sambadc ~]# id RISHI\\administrator id: RISHI\administrator: no such user But when i try the below command it shows the users [root at sambadc ~]# samba-tool user list AvijitGhosh RanjitRaman T...
2018 Jun 15
1
[PATCH v2] lib: Convert all drive socket parameters to an absolute path (RHBZ#1588451).
.../fish/test-add-uri.sh index 756df997b..cb4d40199 100755 --- a/fish/test-add-uri.sh +++ b/fish/test-add-uri.sh @@ -26,6 +26,7 @@ skip_if_skipped rm -f test-add-uri.out rm -f test-add-uri.img +rm -f test-add-uri.sock $VG guestfish sparse test-add-uri.img 10M @@ -55,11 +56,17 @@ grep -sq 'add_drive "" "protocol:nbd" "server:tcp:example.com"' test-add-uri.out $VG guestfish -x -a nbd://example.com:3000 </dev/null >test-add-uri.out 2>&1 grep -sq 'add_drive "" "protocol:nbd" "server:tcp:example.com:3000"' test-...
2015 Dec 03
0
Re: RFC: arbitrary parameters for add_drive
...rystring". > > Another bug that I'm looking at (#1118305) is about setting initiator > IQNs for iSCSI drives; a good solution IMHO would be add a new > initiator-name parameter for this. > > Thinking more, I was realizing that keep adding more optional arguments > to add_drive would make it a bit cluttered; for this, maybe a more > flexible solution for this could be adding a single extra optional > argument as hash-table (or list of "param=value") for all these > rarely used parameters specific to different protocols. How would that > look? So tha...
2012 Oct 04
0
[PATCH for discussion only] launch: Add add_drive 'serial' option.
...These still return raw device names (which still exist, even if the serial is used). Instead there is a new API called list-serial-names which returns a mapping of the serial names to raw device names. This patch is in preparation for hotplugging. The plan would be to remove the restriction that add_drive{_opts} has to be called before launch. If it's called after launch (ie. hotplugging) then we strongly recommend that users specify the serial option so the disk has a predictable name. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-df lists disk...
2020 Feb 19
1
[PATCH] ruby: change value of 'readonly' drive toption to Boolean in doc/example/test
Seeing `g.add_drive_opt :readonly => 1` allows one to imply that ensuring writable access to drive should happen via `g.add_drive_opt :readonly => 0`. However, the passed option value gets passed down to C according to Ruby Boolean semantics, that is, any value apart from `false` and `nil` will be true (see RTES...
2010 May 31
2
VMware and multiple vmdk files
...an pre-allocate your image in several vmdk files. But I have not bee able to mount that in guestfs. On file (e.g. guest.vmdk) is a text file pointing to all the other files (e.g. guest-f001.vmdk, guest-f002.vmdk,...). I tried the following scenarios without success: 1- just adding the base vmdk: add_drive guest.vmdk 2- adding all the files: add_drive guest-f001.vmdk add_drive guest-f002.vmdk ... It works if I merge all the files with vmware-vdiskmanager (something like: vmware-vdiskmanager -r guest.vmdk -t 0 guest-new.vmdk) Can I use guestfs without merging all the files in one image? Thanks, Th...
2014 Mar 18
2
[PATCH 1/2] php: make the test suite failures fatal
So far the failure of some test would have not reported a non-zero return value by run-tests.php. Since now all the PHP tests pass, we can ask for failures to be fatal, by exporting REPORT_EXIT_STATUS=1 for run-tests.php. --- php/run-php-tests.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/php/run-php-tests.sh b/php/run-php-tests.sh index 6f9ae10..e498987 100755 ---
2017 May 03
0
Re: [PATCH] common/options: Change drv struct to store drive index instead of device name.
...0644 > --- a/align/scan.c > +++ b/align/scan.c > @@ -236,7 +236,7 @@ main (int argc, char *argv[]) > error (EXIT_FAILURE, 0, _("--uuid option cannot be used with -a or -d")); > > /* Add domains/drives from the command line (for a single guest). */ > - add_drives (drvs, 'a'); > + add_drives (drvs, 0); This, and in all the other files, is using 0 as starting index. Since add_drives is a macro, I'd remove its drive_index parameter, and always pass 0 to add_drives_handle. The only change needed would be... > char > -add_drives_hand...