search for: dsname

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

Did you mean: d_name
2003 Nov 03
0
problem with fix() called from Rcmdr
...tkfocus(.commander) return() } result } The function activeDataSet() has the following definition (but I doubt that the problem is there, since Rcmdr uses this function a lot and I've not observed a problem in any other context): activeDataSet <- function(dsname){ if (missing(dsname)) { if (is.null(.activeDataSet)){ tkmessageBox(message="There is no active data set.", icon="error", type="ok") return(FALSE) } else return(.activeDataSet) } if (!is.data....
2004 Mar 19
2
Beginners question
Dear list, I've been messing around with coding functions in R and it just won't make sense to me. Running my analysis by hand on command line is fine and works but because of the repetitive nature of the job I would like to code a function for it. My problem: I would like to read in data from a file in my current working dir. so my code would look like: myanalysis <-
2001 Aug 13
1
Processing all *.dat worked. Thanks
...nd *.dat was grabbing all files with .dat in them, not ones ending in .dat. This code creates a *.dat.summary file with the mean and std. deviation. of the numeric variables for every *.dat file in the current directory. myDat<-list.files(pattern="*.dat$") createSummary <-function(dsName){ data<-read.table(dsName,header=T,as.is = TRUE) indices<-1:dim(data)[2] indices<-na.omit(ifelse(indices*sapply(data,is.numeric),indices,NA)) mean<-sapply(data[,indices],mean) sd<-sapply(data[,indices],sd) newOutput<-rbind(mean,sd) newOutput<-round(newOutput,digit...
2010 Jun 07
1
[PATCH] ESX: Fix storage URL if storage has a snapshot
...rtV2V/Transfer/ESX.pm @@ -102,9 +102,7 @@ sub get_volume my $datastore = $1; my $vmdk = $2; - my $url = URI->new("https://".$self->{_v2v_server}); - $url->path("/folder/$vmdk-flat.vmdk"); - $url->query_form(dcPath => "ha-datacenter", dsName => $datastore); + my $url = _get_vol_url($self->{_v2v_server}, $vmdk, $datastore); # Replace / with _ so the vmdk name can be used as a volume name my $volname = $vmdk; @@ -125,16 +123,39 @@ sub get_volume # We could do this with a single GET request. The problem with this...
2010 Sep 21
1
[PREVIEW ONLY] Refactor data transfer code
...quest { my $self = shift; + my ($method, $uri) = @_; - my ($path) = @_; - - # Need to turn this: - # [yellow:storage1] win2k3r2-32/win2k3r2-32.vmdk - # into this: - # https://yellow.rhev.marston/folder/win2k3r2-32/win2k3r2-32-flat.vmdk? \ - # dcPath=ha-datacenter&dsName=yellow:storage1 - - $path =~ /^\[(.*)\]\s+(.*)\.vmdk$/ - or die("Failed to parse ESX path: $path"); - my $datastore = $1; - my $vmdk = $2; - - my $url = _get_vol_url($self->{_v2v_server}, $vmdk, $datastore); + my $base = URI->new($uri->scheme.'://'.$...
2010 Mar 30
3
[PATCH 1/2] Refactor guest and volume creation into Sys::VirtV2V::Target::LibVirt
..._v2v_server} = $server; - $self->{_v2v_pool} = $pool; + $self->{_v2v_target} = $target; $self->{_v2v_username} = $username; $self->{_v2v_password} = $password; @@ -113,31 +113,19 @@ sub get_volume $url->query_form(dcPath => "ha-datacenter", dsName => $datastore); # Replace / with _ so the vmdk name can be used as a volume name - $self->{_v2v_volname} = $vmdk; - $self->{_v2v_volname} =~ s,/,_,g; - - # Check to see if this volume already exists - eval { - my $pool = $self->{_v2v_pool}; - $self->{...
2010 Jan 29
4
[FOR REVIEW ONLY] ESX work in progress
The following patches are where I'm currently at with ESX support. I can now import a domain from ESX along with its storage. Note that I'm not yet doing any conversion. In fact, I've never even tested past the import stage (I just had an exit in there). The meat is really in the 4th patch. The rename of MetadataReader->Connection was because the Connection is now really providing
2010 Feb 01
9
[ESX support] Working ESX conversion for RHEL 5
With this patchset I have successfully[1] imported a RHEL 5 guest directly from ESX with the following command line: virt-v2v -ic 'esx://yellow.marston/?no_verify=1' -op transfer RHEL5-64 Login details are stored in ~/.netrc Note that this is the only guest I've tested against. I haven't for example, checked that I haven't broken Xen imports. Matt [1] With the exception of