search for: dev_siz

Displaying 20 results from an estimated 21 matches for "dev_siz".

Did you mean: dev_size
2008 Sep 30
1
conditional loop
I am looking up a number based upon a randomly selected number and then proceed to the rest of my code if the corresponding value is greater than or equal to yet another value. so if Dev_Size = 14 and my randomly selected number is 102 and i am looking up 102 in the following table 100 21 101 4 102 9 103 52 104 29 So i select the the corresponding value of 102, which is 9 and determine if it is greater than or equal to Dev_Size and if it is i would proceed, if not i would like...
2008 Sep 24
2
Calling object outside function
...hat the object cannot be found. Do i use attach? this didnt seem to work either. I just want to call an object defined in a function outside of the function. Hope you can help Cheers, JR #Function to create hypothetical numbers for process testing Testdata=function(TAZ_VAC_ACRES,Loc_Mod_TAZ,Dev_Size,TAZDetermine,Dev_Size){ #Loads TAZ and corresponding vacant acres data TAZ_VAC_ACRES= read.csv(file="I:/Research/Samba/urb_transport_modeling/LUSDR/Workspace/BizLandPrice/data/TAZ_VAC_ACRES.csv",header=TRUE); #Test Location Choice Model selected TAZ Loc_Mod_TAZ = 120 #Create test Dev...
2008 Dec 12
1
Creating a vector
...date TAZs from location shoice model cands=c(101,102,107,108) #Create Object of length of cands candslength=length(cands) #Test Location Choice Model selected TAZ for(i in i:candslength){ #Renames randomly generated TAZ's object Loc_Mod_TAZ=cands[i] #Create test Development in Sq. Ft. Dev_Size=500000 #Determines vacant square feet by TAZ TAZDetermine_FEET=TAZ_VAC_FEET[TAZ_VAC_FEET$TAZS==Loc_Mod_TAZ,2] #Heres my problem...my attempt below is to build a vector of length-"candslength" of all of the #"TAZDetermine_FEET" values that are less than or equal to Dev_...
2008 Nov 25
2
creating a new vecotr in a for loop
...idate TAZs from the main script Location Choice Model NumCands1=length(Candidates) Dev..At=9999999 for(i in 1:NumCands1){ #Renames Location Choice Model generated TAZ's object Loc_Mod_TAZ=Candidates[i] #Converts Development size from main script to Development density function format Dev_Size=Dev..At #This is my "y" value in the example i gave above, this is the value that i need put into a # vector, a vector that should have as many values as there are number of candidates TAZDetermine_FEET=TAZ_VAC_FEET[TAZ_VAC_FEET$TAZ==Loc_Mod_TAZ,2] #Creates new...
2009 Sep 14
2
[PATCH node-image] add livecd-iso-to-iscsi script to support iscsi root booting setup
...= 1 + for udi in udis: + dev_obj = bus.get_object ('org.freedesktop.Hal', udi) + dev = dbus.Interface (dev_obj, 'org.freedesktop.Hal.Device') + dev_bus=dev.GetProperty ('storage.bus') + dev_name=dev.GetProperty ('block.device') + dev_size=dev.GetProperty ('storage.size') + dev_size=(dev_size/1024/1024) + basename=os.path.basename(udi) + if dev_bus == "scsi": + print "%s. %s %sM %s \n" % (dev_count,dev_name,dev_size,basename) + dev_dict[str(dev_count)] = dev_name...
2012 Jan 31
2
[PATCH 1/2] examples: code cleanups
do a code cleanup by removing the tailing spaces Signed-off-by: Wanlong Gao <gaowanlong at cn.fujitsu.com> --- examples/create_disk.c | 2 +- examples/inspect_vm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/create_disk.c b/examples/create_disk.c index f4b9044..bcad6d8 100644 --- a/examples/create_disk.c +++ b/examples/create_disk.c @@ -7,7 +7,7
2016 Feb 15
1
[PATCH] Start adding return values tests for bindings
...ot;4" +} +bool(false) +array(14) { + ["pv_name"]=> + string(3) "pv0" + ["pv_uuid"]=> + string(32) "12345678901234567890123456789012" + ["pv_fmt"]=> + string(7) "unknown" + ["pv_size"]=> + int(0) + ["dev_size"]=> + int(0) + ["pv_free"]=> + int(0) + ["pv_used"]=> + int(0) + ["pv_attr"]=> + string(5) "attr0" + ["pv_pe_count"]=> + int(0) + ["pv_pe_alloc_count"]=> + int(0) + ["pv_tags"]=> + string(4...
2012 Oct 24
2
[BUG][BTRFS-PROGS] Fix Bug to corrupt the img file
...ed, 6 insertions(+), 2 deletions(-) diff --git a/utils.c b/utils.c index 205e667..3c88d2e 100644 --- a/utils.c +++ b/utils.c @@ -441,7 +441,7 @@ static int zero_blocks(int fd, off_t start, size_t len) return ret; } -static int zero_dev_start(int fd) +static int zero_dev_start(int fd, u64 dev_size) { off_t start = 0; size_t len = 2 * 1024 * 1024; @@ -451,6 +451,10 @@ static int zero_dev_start(int fd) start = 1024; len -= 1024; #endif + + if (dev_size < len) + return -EIO; + return zero_blocks(fd, start, len); } @@ -572,7 +57...
2012 Jan 17
2
[PATCH v2] New tool: virt-format
This is the same as the previous patch, but the partition type is now chosen automatically from mbr or gpt, unless the user expresses a preference. https://gb.redhat.com/archives/libguestfs/2012-January/msg00136.html Rich.
2020 Jul 03
0
Re: [libguestfs/nbdkit] Floppy plugin seems to be broken (#6)
...020 at 09:25:26PM -0700, Trevor Rudolph wrote: > It looks like the partition map created by the floppy plugin is not valid. > > Specifically when using a mapper it looks like the disk is too small. > ``` > device-mapper: table: 254:0: nbd0 too small for target: start=4096, len=320, dev_size=2208 > ``` > > Maybe this is an issue with the sector math? I will look into it further. I wonder if this is something to do with the device mapper rather than the floppy plugin? Perhaps it cannot handle a device which is too small. What is the reproducing command? Rich. -- Richard...
2010 May 21
4
[PATCH 0/4] Allow shrinking of ext2, PVs and NTFS
...filesystems. Type: 'help' for a list of commands 'man' to read the manual 'quit' to quit the shell ><fs> pvcreate /dev/vda1 ><fs> pvresize-size /dev/vda1 512M ><fs> pvs-full [0] = { [...] pv_size: 536870912 dev_size: 1073741312 [...] } Example using ntfsresize-size: $ guestfish -N fs:ntfs:1G Welcome to guestfish, the libguestfs filesystem interactive shell for editing virtual machine filesystems. Type: 'help' for a list of commands 'man' to read the manual ...
2009 Oct 14
4
Refactor ovirt-node-image code base for inclusion in Fedora
Main reason for refactor is no ovirt-node-image binary image allowed in fedora. Removed ks files, now in ovirt-node-recipe, which is subpackage of ovirt-node. Removed tools, these are now in ovirt-node-recipe which is subpackage of ovirt-node.
2009 Oct 14
8
Refactor ovirt-node code base for inclusion in Fedora
Main reason for refactor is no ovirt-node-image binary image allowed in fedora. Moves tools and kickstart files form ovirt-node-image to subpackage ovirt-node-recipe. Removes old sub packages form ovirt-node, stateless, logos, selinux. Modifies init scripts to meet Fedora packaging guidelines: added status, reload, and lockfile, rhbz: 514221 Added License file.
2012 Jan 12
1
Libguestfs gobject bindings
I'm currently working on gobject bindings for libguestfs. I haven't got as far as compiling anything yet, but I've attached the C header for initial review. Matt -- Matthew Booth, RHCA, RHCSS Red Hat Engineering, Virtualisation Team GPG ID: D33C3490 GPG FPR: 3733 612D 2D05 5458 8A8A 1600 3441 EA19 D33C 3490 -------------- next part -------------- An embedded and
2012 Jun 25
4
[RFC V2 PATCH 0/4] Multiqueue support for tap and virtio-net/vhost
Hello all: This seires is an update of last version of multiqueue support to add multiqueue capability to both tap and virtio-net. Some kinds of tap backends has (macvatp in linux) or would (tap) support multiqueue. In such kind of tap backend, each file descriptor of a tap is a qeueu and ioctls were prodived to attach an exist tap file descriptor to the tun/tap device. So the patch let qemu to
2012 Jun 25
4
[RFC V2 PATCH 0/4] Multiqueue support for tap and virtio-net/vhost
Hello all: This seires is an update of last version of multiqueue support to add multiqueue capability to both tap and virtio-net. Some kinds of tap backends has (macvatp in linux) or would (tap) support multiqueue. In such kind of tap backend, each file descriptor of a tap is a qeueu and ioctls were prodived to attach an exist tap file descriptor to the tun/tap device. So the patch let qemu to
2012 Jul 06
5
[RFC V3 0/5] Multiqueue support for tap and virtio-net/vhost
Hello all: This seires is an update of last version of multiqueue support to add multiqueue capability to both tap and virtio-net. Some kinds of tap backends has (macvatp in linux) or would (tap) support multiqueue. In such kind of tap backend, each file descriptor of a tap is a qeueu and ioctls were prodived to attach an exist tap file descriptor to the tun/tap device. So the patch let qemu to
2012 Jul 06
5
[RFC V3 0/5] Multiqueue support for tap and virtio-net/vhost
Hello all: This seires is an update of last version of multiqueue support to add multiqueue capability to both tap and virtio-net. Some kinds of tap backends has (macvatp in linux) or would (tap) support multiqueue. In such kind of tap backend, each file descriptor of a tap is a qeueu and ioctls were prodived to attach an exist tap file descriptor to the tun/tap device. So the patch let qemu to
2014 Sep 26
9
[PATCH v4 0/7] virt-resize: add support for resizing logical partitions
Hi Rich, This is v3 series to add support for resizing MBR logical partitions. changes to v3: 1. merge patch 1 and patch 3 in v3 2. let mbr_part_type return 'primary' for GPT partitions 3. add test for resizing logical partitions 4. fix extending the extended partition (yet). see patch 7. changes to v2: 1. remove p_part_num 2. remove filter_parts 3. name the function
2014 Sep 09
2
Re: CoreOS support
The options -x -v gave me an error that no such option so I ruined it with —debug option. root@ny2proxd03:/var/lib/vz/images/100# virt-resize --expand /dev/sda3 vm-100-disk-1.qcow2 vm-100-disk-1.qcow2.resized --debug command line: virt-resize --expand /dev/sda3 vm-100-disk-1.qcow2 vm-100-disk-1.qcow2.resized --debug Examining vm-100-disk-1.qcow2 ... libguestfs: trace: add_drive