search for: remotepath

Displaying 20 results from an estimated 24 matches for "remotepath".

2017 Feb 15
1
[PATCH v2] copy-out: new optional arguments
...t a/generator/actions.ml b/generator/actions.ml index 990eacb..9015a1a 100644 --- a/generator/actions.ml +++ b/generator/actions.ml @@ -3437,8 +3437,9 @@ Wildcards cannot be used." }; { defaults with name = "copy_out"; added = (1, 29, 24); - style = RErr, [Pathname "remotepath"; String "localdir"], []; + style = RErr, [Pathname "remotepath"; String "localdir"], [OBool "numericowner"; OStringList "excludes"; OBool "xattrs"; OBool "selinux"; OBool "acls"]; visibility = VPublicNoFis...
2015 Feb 02
1
Re: [PATCH 5/6] New APIs: copy-in and copy-out
...led C</remotedir> ^ You don't need the / here. > +(which must exist). > + > +Wildcards cannot be used." }; > + > + { defaults with > + name = "copy_out"; > + style = RErr, [Pathname "remotepath"; String "localdir"], []; > + visibility = VPublicNoFish; > + shortdesc = "copy remote files or directories out of an image"; > + longdesc = "\ > +C<guestfs_copy_out> copies remote files or directories recursively > +out of the disk image,...
2017 Feb 14
0
[PATCH 06/10] copy-out: new 'excludes' optional argument
...t a/generator/actions.ml b/generator/actions.ml index 990eacb..fd6cc9f 100644 --- a/generator/actions.ml +++ b/generator/actions.ml @@ -3437,8 +3437,9 @@ Wildcards cannot be used." }; { defaults with name = "copy_out"; added = (1, 29, 24); - style = RErr, [Pathname "remotepath"; String "localdir"], []; + style = RErr, [Pathname "remotepath"; String "localdir"], [OStringList "excludes"]; visibility = VPublicNoFish; + once_had_no_optargs = true; shortdesc = "copy remote files or directories out of an image&q...
2015 Jan 26
0
[PATCH 5/6] New APIs: copy-in and copy-out
...+C<guestfs_copy_in> copies local files or directories recursively into +the disk image, placing them in the directory called C</remotedir> +(which must exist). + +Wildcards cannot be used." }; + + { defaults with + name = "copy_out"; + style = RErr, [Pathname "remotepath"; String "localdir"], []; + visibility = VPublicNoFish; + shortdesc = "copy remote files or directories out of an image"; + longdesc = "\ +C<guestfs_copy_out> copies remote files or directories recursively +out of the disk image, placing them on the host...
2007 Sep 03
1
Snow on Windows Cluster
...) tmpdir <- unlist(strsplit(tempdir(),"/Rtmp"))[1] localhost <- Sys.getenv("COMPUTERNAME") networkdrive <-.Call("RegQuery", as.integer(2),paste("NETWORK\\",workdrive,sep=""), PACKAGE="Rmpi") remotepath <-networkdrive[which(networkdrive=="RemotePath")+1] mapdrive=TRUE mapdrive <- as.logical(mapdrive && !is.null(remotepath)) Rscript=system.file("slaveload.R", package="snow") arg <- c(Rscript, R.home(), workdrive, getwd(),worktmp, tmpdir...
2015 Jan 26
6
[PATCH 1/6] cmd: add a way to run (and wait) asynchronously commands
--- src/command.c | 64 +++++++++++++++++++++++++++++++++++++++++++------- src/guestfs-internal.h | 3 +++ 2 files changed, 58 insertions(+), 9 deletions(-) diff --git a/src/command.c b/src/command.c index 4bb469b..e26573d 100644 --- a/src/command.c +++ b/src/command.c @@ -360,7 +360,7 @@ debug_command (struct command *cmd) } static int -run_command (struct command *cmd)
2017 Feb 14
1
Re: [PATCH 06/10] copy-out: new 'excludes' optional argument
...ions.ml > index 990eacb..fd6cc9f 100644 > --- a/generator/actions.ml > +++ b/generator/actions.ml > @@ -3437,8 +3437,9 @@ Wildcards cannot be used." }; > > { defaults with > name = "copy_out"; added = (1, 29, 24); > - style = RErr, [Pathname "remotepath"; String "localdir"], []; > + style = RErr, [Pathname "remotepath"; String "localdir"], [OStringList "excludes"]; This change seems reasonable. Should we: (1) Bind other tar-out parameters? It looks as if numericowner, xattrs, selinux and acls...
2015 Feb 02
8
[PATCH 0/7 v2] Make copy_in & copy_out APIs, and use copy_in in customize
Hi, attached there is the second version of the patch series adding copy_in and copy_out in the library, mostly moving them from guestfish. It also adds the copy_in usage in virt-customize, as aid in a new image building. Thanks, Pino Toscano (7): cmd: add a way to run (and wait) asynchronously commands cmd: add a child-setup callback cmd: add the possibility to get a fd to the process
2006 Feb 03
0
rquotad (NFS) quota plugin
...tart(args, errmsg); + quota->error = p_strdup_vprintf(root->pool, errmsg, args); + va_end(args); + } + + static void rquotad_quota_root_update(struct rquotad_quota_root *root) + { + struct statfs statfsbuf; + struct getquota_args qargs; + struct getquota_rslt qres; + char *remotehost, *remotepath; + char *c; + + if (root->state == RQUOTAD_OFF) { + return; + } + + if (statfs(root->name, &statfsbuf) < 0) { + rquotad_quota_root_error_alloc(root, strerror(errno)); + root->state = RQUOTAD_ERR; + return; + } + + if (statfsbuf.f_flags & MNT_LOCAL) { + root-&g...
2017 Feb 14
14
[PATCH 00/10] dib/API: improvements and fixes
Hi, this patch series does changes mostly in virt-dib, few bug fixes and a couple of new features (mostly implemented upstream already). In addition, one new API is added, and a new optional argument for an existing API is added (the latter is not needed, but could be useful anyway). Thanks, Pino Toscano (10): dib: fix listing envvars in fake-sudo dib: source dib "die" script in
2011 Jun 21
1
meaning of rsync statistics figures
Hi, I don?t know if this is the palace top put my inquire, if is not, I apologize and ask if someone can redirect me to the right place. I?m using rsync as a backup system from my PC (windows) network using a command like rsync ?av remotePath localPath at the end of the process, rsync prints some summary statistics that I don?t know what exactly means. Sent 2742043 bytes received 377885 bytes 271298.09 bytes/sec Total size is 44016420050 speedup is 14108.15 Which is the meaning of all of this figures? If I change the...
2017 Dec 24
3
virt-copy-in - how do I get the selinux relabeling done for the file?
I'm copying a file into a VM using virt-copy-in - which is great, but the file is wrongly labeled. How can I fix that? TIA, Y.
2019 Jan 24
3
sftp Vs scp
I almost never use bare 'scp' or 'sftp' anymore; I start with either 'rsync' or, if 'rsync' is not present and not installable on one end or the other, the "tar-over-bare-ssh" approach: ``` tar cf - localpath | ssh remote.host 'cd remotepath && tar xvf -' ``` I'd be in favor of one of the following: 1. 'scp' goes away, and support for file transfer via CLI is added to 'sftp'. 2. 'scp' goes away, and support for file transfer via CLI is changed to, "use rsync or something-over-bare-ssh in...
2005 Nov 01
3
error in rsync protocol data stream (code 12) at io.c(359)
Hi, I've been experiencing this error for 2 weeks now. I don't now ehat could be a reason. I've tried to update with latest sources, but the same result (I'm not sure for line number, but the rest is the same). rsync: connection unexpectedly closed (5881604 bytes received so far) [generator] rsync error: error in rsync protocol data stream (code 12) at io.c(359) My synchronized
2015 Sep 29
8
[PATCH 0/7] copy-in/copy-out: Capture errors from tar subprocess (RHBZ#1267032).
Commits 3c27f3d91e1566854747bbe844186783fc84f3a8 and 1b6f0daa9ae7fcc94e389232d0c397816cda973d added an internal API for running commands asynchronously. It is only used by the copy-in and copy-out APIs. Unfortunately this made the command code very complex: it was almost impossible to redirect stderr to a file, and there were a lot of long-range dependencies through the file. It was also buggy:
2016 Mar 06
8
[PATCH 0/5] Use less stack.
Various changes/fixes to use smaller stack frames. Rich.
2016 Mar 07
2
[PATCH v2] Use less stack.
...f[buf_len]; + CLEANUP_FREE char *buf = safe_malloc (g, buf_len); const char *dirname, *basename; struct stat statbuf; @@ -153,7 +153,7 @@ guestfs_impl_copy_out (guestfs_h *g, if (r == 1) { /* is file */ CLEANUP_FREE char *filename = NULL; size_t buf_len = strlen (remotepath) + 1; - char buf[buf_len]; + CLEANUP_FREE char *buf = safe_malloc (g, buf_len); const char *basename; if (split_path (g, buf, buf_len, remotepath, NULL, &basename) == -1) @@ -181,7 +181,7 @@ guestfs_impl_copy_out (guestfs_h *g, } size_t buf_len = strlen (remotepath...
2019 Jan 24
5
sftp Vs scp
On Jan 24 03:47, Malcolm wrote: > Quoting Chris High <highc at us.ibm.com>: > > > caught my eye. Do you see any 'advantage' to using sftp with an untrusted > > server? If so, any thoughts about making an easy way to disable scp both > > client and server side when doing an installation? > > SFTP allows file resume, while scp does not. If this
2015 Feb 14
2
[PATCH 0/2] Change guestfs__*
libguestfs has used double and triple underscores in identifiers. These aren't valid for global names in C++. (http://stackoverflow.com/a/228797) These large but completely mechanical patches change the illegal identifiers to legal ones. Rich.
2017 Apr 04
1
[PATCH] Use Unicode single quotes ‘’ in place of short single quoted strings throughout.
...not a directory"), localdir); + error (g, _("target ‘%s’ is not a directory"), localdir); return -1; } @@ -176,7 +176,7 @@ guestfs_impl_copy_out (guestfs_h *g, return -1; if (r == 0) { - error (g, _("'%s' is not a file or directory"), remotepath); + error (g, _("‘%s’ is not a file or directory"), remotepath); return -1; } diff --git a/lib/create.c b/lib/create.c index 6f1584ed3..bd4c32ef7 100644 --- a/lib/create.c +++ b/lib/create.c @@ -93,7 +93,7 @@ guestfs_impl_disk_create (guestfs_h *g, const char *filename,...