search for: spath

Displaying 18 results from an estimated 18 matches for "spath".

Did you mean: path
2016 Jan 15
1
[PATCH] daemon: resolve paths for ll and llz
...pe - * from the sysroot (eg. 'll /..'). This command is not meant for - * serious use anyway, just for quick interactive sessions. - */ - char * do_ll (const char *path) { int r; char *out; CLEANUP_FREE char *err = NULL; + CLEANUP_FREE char *rpath = NULL; CLEANUP_FREE char *spath = NULL; - spath = sysroot_path (path); + CHROOT_IN; + rpath = realpath (path, NULL); + CHROOT_OUT; + if (rpath == NULL) { + reply_with_perror ("%s", path); + return NULL; + } + + spath = sysroot_path (rpath); if (!spath) { reply_with_perror ("malloc");...
2012 Feb 08
2
Fix virt-edit so it preserves permissions (RHBZ#788641)
The first patch preserves file mode, UID, GID and SELinux context across edited files. The second patch adds a useful new command in guestfish ('llz') which shows SELinux context (like 'ls -laZ') that was useful when debugging this. Rich.
2008 May 09
4
VB6 and wine_get_unix_file_name
...t;kernel32" () As Long Public Declare Function HeapFree Lib "kernel32" (ByVal hHeap As Long, ByVal dwFlags As Long, IpMem As Any) As Long Public Declare Function wine_get_unix_file_name Lib "kernel32" (ByVal lpszSrc As String) As Long Public Function GetUnixPath(ByVal sPath As String) As String Dim ptr As Long Dim sBuffer As String * 255 ptr = wine_get_unix_file_name(StrConv(sPath, vbUnicode)) lstrcpyA sBuffer, ptr HeapFree GetProcessHeap(), 0, ByVal ptr GetUnixPath = sBuffer End Function Sub Main() UnixPath = GetUnixPath() MsgBox...
2012 May 15
5
[PATCH 0 of 4 v3] Add commands to automatically prep devices for pass-through
Add commands to automatically prep devices for pass-through The current method for passing through devices requires users to either modify cryptic Linux boot parameters and reboot, or do a lot of manual reads and writes into sysfs nodes. This set of patches introduces commands to make this easier. It expands on the concept of "assignable" (from the list_assignable_devices command).
2009 Aug 11
1
[PATCH libguestfs] daemon/ls: make do_ll require root, like all the rest
...ot). This + * command is not meant for serious use anyway, just for quick + * interactive sessions. For the same reason, you can also "escape" + * the sysroot (eg. 'll /..'). + */ + char * do_ll (char *path) { @@ -81,15 +89,9 @@ do_ll (char *path) char *out, *err; char *spath; - //NEED_ROOT + NEED_ROOT (NULL); ABS_PATH (path, NULL); - /* This exposes the /sysroot, because we can't chroot and run the ls - * command (since 'ls' won't necessarily exist in the chroot). This - * command is not meant for serious use anyway, just for quick - * in...
2003 Sep 02
0
File in use error (PR#4047)
...se files contain information about a microarray experiment (CEL files). The instructions passed to R are as follows (VB .NET): ----- 'Make (D)COM connection Dim x As New STATCONNECTORSRVLib.StatConnector() 'Initialising R x.Init("R") x.EvaluateNoReturn("library(affy)") sPath = "c:\\temp\\" x.EvaluateNoReturn("setwd(" + Chr(34) + sPath + Chr(34) + ")") 'Reading files... x.EvaluateNoReturn("data <- ReadAffy()") 'Calculating RMA expression values... x.EvaluateNoReturn("eset <- expresso(data, bgcorrect.method=&qu...
2005 Jun 30
0
Rsync files with long filename
...t a temp file, however a number of important files are not being copied. My setup (which otherwise is working well) is rsyncing between two w2k3 machines with cygwin. Rsync command: $RSYNC -vrpogtz --delete \ --exclude=.mappedfiles --include-from=$RCONF \ --modify-window 10 $RHOST::backup$SPATH $DPATH With all paramaters set correctly Any suggestions? Thanks -nick --- Important: This message is intended only for the use of the addressee and may contain confidential or legally privileged information. If you are not the intended recipient, you must not use, disseminate, copy or take an...
2012 Feb 29
15
[RFC] [PATCH] Add btrfs autosnap feature
From: anand jain <anand.jain@oracle.com> Anand Jain (1): [RFC] Add btrfs autosnap feature Makefile | 6 +- autosnap.c | 1553 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ autosnap.h | 81 +++ btrfs-list.c | 140 +++++- btrfs.c | 46 ++- btrfs_cmds.c | 186 +++++++- btrfs_cmds.h | 3 +- scrub.c | 1 + 8 files changed, 1982 insertions(+), 34
2018 Dec 26
2
How to change the server info/version which Samba returns to the client?
On 2018-12-26 17:10, Rowland Penny via samba wrote: > Domain=[WORKGROUP] OS=[Windows 6.1] Server=[Samba 4.2.14-Debian] > > Comes from the servers Samba version, you cannot change this. > > The 'server string' parameter controls what is shown in browse lists > etc. This can be changed, but Samba will need to be restarted/reload > after the change and a new connection
2012 Aug 30
2
[PATCH v2] daemon: collect list of called external commands
...nclude "daemon.h" #include "actions.h" +GUESTFSD_EXT_CMD(str_ls, ls); + /* Has one FileOut parameter. */ int do_ls0 (const char *path) @@ -112,7 +114,7 @@ do_ll (const char *path) return NULL; } - r = command (&out, &err, "ls", "-la", spath, NULL); + r = command (&out, &err, str_ls, "-la", spath, NULL); free (spath); if (r == -1) { reply_with_error ("%s", err); @@ -138,7 +140,7 @@ do_llz (const char *path) return NULL; } - r = command (&out, &err, "ls", "-laZ&qu...
2012 Aug 30
1
[PATCH] collect list of called external commands
...include "daemon.h" #include "actions.h" +GUESTFS_EXT_CMD(str_ls, ls); + /* Has one FileOut parameter. */ int do_ls0 (const char *path) @@ -112,7 +114,7 @@ do_ll (const char *path) return NULL; } - r = command (&out, &err, "ls", "-la", spath, NULL); + r = command (&out, &err, str_ls, "-la", spath, NULL); free (spath); if (r == -1) { reply_with_error ("%s", err); @@ -138,7 +140,7 @@ do_llz (const char *path) return NULL; } - r = command (&out, &err, "ls", "-laZ&qu...
2004 May 20
3
Rsync snapshot on Linux from Windows server
...c 2.6.0 The objective is to have regular snapshot backups that users can access directly, via Samba, but that do not take up too much space on the Linux system. I tried running a script with the following rsync line: rsync -avv --delete --modify-window=1 --link-dest=/backup/01 $SHOST::"$SPATH" /backup/00/ Everything gets copied with this, but new copies of every file are created on each subsequent snapshot, even though the files have not changed. Also, no permissions or ownership information seem to be transferred. If I modify the rsync parameters from "-avv" to &quot...
2017 Jul 27
0
[PATCH v2] daemon: Remove GUESTFSD_EXT_CMD.
...6 @@ #include "daemon.h" #include "actions.h" -GUESTFSD_EXT_CMD(str_ls, ls); - /* Has one FileOut parameter. */ int do_ls0 (const char *path) @@ -118,7 +116,7 @@ do_ll (const char *path) return NULL; } - r = command (&out, &err, str_ls, "-la", spath, NULL); + r = command (&out, &err, "ls", "-la", spath, NULL); if (r == -1) { reply_with_error ("%s", err); free (out); @@ -151,7 +149,7 @@ do_llz (const char *path) return NULL; } - r = command (&out, &err, str_ls, "-laZ&qu...
2017 Jul 24
0
[PATCH 2/2] daemon: Replace GUESTFSD_EXT_CMD with --print-external-commands.
...uot;daemon.h" #include "actions.h" -GUESTFSD_EXT_CMD(str_ls, ls); +DECLARE_EXTERNAL_COMMANDS ("ls") /* Has one FileOut parameter. */ int @@ -118,7 +118,7 @@ do_ll (const char *path) return NULL; } - r = command (&out, &err, str_ls, "-la", spath, NULL); + r = command (&out, &err, "ls", "-la", spath, NULL); if (r == -1) { reply_with_error ("%s", err); free (out); @@ -151,7 +151,7 @@ do_llz (const char *path) return NULL; } - r = command (&out, &err, str_ls, "-laZ&qu...
2017 Jul 27
3
[PATCH v2] daemon: Remove GUESTFSD_EXT_CMD.
This is a simpler patch that removes GUESTFSD_EXT_CMD completely.
2017 Jul 24
6
[PATCH 0/2] daemon: Replace GUESTFSD_EXT_CMD with --print-external-commands.
Replace GUESTFSD_EXT_CMD with a command line option ‘./guestfsd --print-external-commands’
2013 Aug 24
67
[PATCH 00/67] Proposed patches for libguestfs 1.22.6.
In the kernel and qemu communities it is routine for patches that will be backported to stable branches to be posted for review. I'm proposing we do the same for libguestfs stable branches. All of the attached have been tested with 'make check-release'. Rich.
2009 Aug 12
23
[PATCH 0/23] factor and const-correctness
This started as a simple warning-elimination change. I'll get back to that series shortly ;-) It turned into a factorization and constification exercise during which I got a taste of ocaml. Thanks to Rich Jones for help with a few snippets in generator.ml. The overall result is that many previously-manually-maintained bits from daemon/*.c functions are now hoisted into the automatically-