search for: ftyp

Displaying 20 results from an estimated 35 matches for "ftyp".

Did you mean: ftp
2014 Oct 31
4
[PATCH] fish: fix dir completion on filesystems w/o dirent.d_type (RHBZ#1153844).
...44 --- a/fish/destpaths.c +++ b/fish/destpaths.c @@ -191,7 +191,13 @@ complete_dest_paths_generator (const char *text, int state) else { words = w; words[nr_words].name = p; - words[nr_words].is_dir = dirents->val[i].ftyp == 'd'; + if (dirents->val[i].ftyp == 'u' + || dirents->val[i].ftyp == '?') { + int is_dir = guestfs_is_dir_opts (g, words[nr_words].name, + GUESTFS_IS_DIR_OPTS_FOLLOWSYMLINKS, 1, -1)...
2005 Mar 22
2
lattice xyplot() postscript (?) problem in R 2.0.0
Dear all, I work with R Version 2.0.0 on Machine hardware: sun4u OS version: 5.9 Processor type: sparc Hardware: SUNW,Sun-Blade-1000 and I have a very simple data frame (called OR) with the following variables: > sapply( OR, class) X ci FTyp "factor" "numeric" "factor" (In OR$ci there are some Inf-values. OR's complete contents are appended below.) If I do > library( lattice) > xyplot( X ~ ci | FTyp, data= OR) the requested trellis plot appears and everything is fine. BUT, if I want to p...
2016 Apr 04
2
Re: [PATCH v2 3/5] daemon: Added internal_filesystem_walk command
...the quoting? We don't quote results in similar APIs (e.g. readdir). > > > I didn't understand this one. I checked daemon/readdir.c and I found no > asprintf examples there. $ ./run guestfish -N fs -m /dev/sda1 touch "/file with spaces" : readdir / [0] = { ino: 12 ftyp: r name: file with spaces } [1] = { ino: 2 ftyp: d name: . } [2] = { ino: 11 ftyp: d name: lost+found } [3] = { ino: 2 ftyp: d name: .. } You can see the file names are not quoted. > > > + if (ret < 0) { > > > + fprintf (stderr, "asprintf: %m&quot...
2018 Jan 30
0
Re: python 3 bindings on libguestfs
The interesting line is this one ... checking for PyString_AsString in -lc... no and if you compare that to the code, eg in python/guestfs-py.c: #ifdef HAVE_PYSTRING_ASSTRING PyDict_SetItemString (dict, "ftyp", PyString_FromStringAndSize (&dirent->ftyp, 1)); #else PyDict_SetItemString (dict, "ftyp", PyUnicode_FromStringAndSize (&dirent->ftyp, 1)); #endif So it shouldn't be using that function (PyString_FromStringAndSize)...
2014 Oct 31
0
Re: [PATCH] fish: fix dir completion on filesystems w/o dirent.d_type (RHBZ#1153844).
...+++ b/fish/destpaths.c > @@ -191,7 +191,13 @@ complete_dest_paths_generator (const char *text, int state) > else { > words = w; > words[nr_words].name = p; > - words[nr_words].is_dir = dirents->val[i].ftyp == 'd'; > + if (dirents->val[i].ftyp == 'u' > + || dirents->val[i].ftyp == '?') { > + int is_dir = guestfs_is_dir_opts (g, words[nr_words].name, > + GUESTFS_IS_DIR_OPTS_FO...
2016 Feb 12
0
[PATCH] php: restructure and expand tests
...VG/LV1", "/"); +guestfs_mkdir ($g, "/p"); +guestfs_touch ($g, "/q"); + +function dir_cmp ($a, $b) +{ + return strcmp ($a["name"], $b["name"]); +} +function dir_extract ($n) +{ + return array ("name" => $n["name"], "ftyp" => $n["ftyp"]); +} +$dirs = guestfs_readdir ($g, "/"); +usort ($dirs, "dir_cmp"); +$dirs = array_map ("dir_extract", $dirs); +var_dump ($dirs); + +guestfs_shutdown ($g); +echo ("OK\n"); +?> +--EXPECT-- +array(2) { + [0]=> + string(1...
2014 Oct 31
0
[PATCH] fish: complete symlink properly
...c b/fish/destpaths.c index df1ec00..d39d6c0 100644 --- a/fish/destpaths.c +++ b/fish/destpaths.c @@ -192,6 +192,7 @@ complete_dest_paths_generator (const char *text, int state) words = w; words[nr_words].name = p; if (dirents->val[i].ftyp == 'u' + || dirents->val[i].ftyp == 'l' || dirents->val[i].ftyp == '?') { int is_dir = guestfs_is_dir_opts (g, words[nr_words].name, GUESTFS_IS_DIR_OPTS_FOLLOWSYMLINKS, 1, -...
2014 Nov 16
2
[PATCH] list-applications: Add support for pacman
...pacman/local"); + if (local_db == NULL) + return NULL; + + /* Allocate 'apps' list. */ + apps = safe_malloc (g, sizeof *apps); + apps->len = 0; + apps->val = NULL; + + + for (i = 0; i < local_db->len; i++) { + curr = &local_db->val[i]; + + if (curr->ftyp != 'd' || STREQ (curr->name, ".") || STREQ (curr->name, "..")) + continue; + + free (fname); + fname = safe_malloc (g, strlen (curr->name) + path_len + 1); + sprintf (fname, "/var/lib/pacman/local/%s/desc", curr->name); + free (desc...
2016 Apr 04
2
Re: [PATCH v2 3/5] daemon: Added internal_filesystem_walk command
On Sunday 03 April 2016 16:30:48 Matteo Cafasso wrote: > The internal_filesystem_walk command walks > through the FS structure of a disk partition > and returns all the files or directories > which could be found. > > The command is able to retrieve information > regarding deleted or unaccessible files as well > where other commands such as stat or find > would fail.
2017 Oct 04
0
[PATCH 2/9] ocaml: Replace pattern matching { field = field } with { field }.
...3343794..de8b8b084 100644 --- a/ocaml/t/guestfs_100_launch.ml +++ b/ocaml/t/guestfs_100_launch.ml @@ -42,7 +42,7 @@ let () = let cmp { Guestfs.name = n1 } { Guestfs.name = n2 } = compare n1 n2 in let dirs = List.sort cmp dirs in let dirs = List.map ( - fun { Guestfs.name = name; Guestfs.ftyp = ftyp } -> (name, ftyp) + fun { Guestfs.name; ftyp } -> (name, ftyp) ) dirs in if dirs <> [ ".", 'd'; diff --git a/resize/resize.ml b/resize/resize.ml index a19e57564..49fdfd538 100644 --- a/resize/resize.ml +++ b/resize/resize.ml @@ -339,9 +339,7 @@ read t...
2014 Nov 17
1
[PATCH] list-applications: Add support for pacman
...b/pacman/local"); + if (local_db == NULL) + return NULL; + + /* Allocate 'apps' list. */ + apps = safe_malloc (g, sizeof *apps); + apps->len = 0; + apps->val = NULL; + + for (i = 0; i < local_db->len; i++) { + curr = &local_db->val[i]; + + if (curr->ftyp != 'd' || STREQ (curr->name, ".") || STREQ (curr->name, "..")) + continue; + + free (fname); + fname = safe_malloc (g, strlen (curr->name) + path_len + 1); + sprintf (fname, "/var/lib/pacman/local/%s/desc", curr->name); + free (desc...
2014 Nov 16
0
Re: [PATCH] list-applications: Add support for pacman
...* Allocate 'apps' list. */ > + apps = safe_malloc (g, sizeof *apps); > + apps->len = 0; > + apps->val = NULL; > + > + Extra blank line here. > + for (i = 0; i < local_db->len; i++) { > + curr = &local_db->val[i]; > + > + if (curr->ftyp != 'd' || STREQ (curr->name, ".") || STREQ (curr->name, "..")) > + continue; > + > + free (fname); > + fname = safe_malloc (g, strlen (curr->name) + path_len + 1); > + sprintf (fname, "/var/lib/pacman/local/%s/desc", curr-&...
2014 Nov 17
2
Re: [PATCH] list-applications: Add support for pacman
...ps = safe_malloc (g, sizeof *apps); >> + apps->len = 0; >> + apps->val = NULL; >> + >> + > > Extra blank line here. > >> + for (i = 0; i < local_db->len; i++) { >> + curr = &local_db->val[i]; >> + >> + if (curr->ftyp != 'd' || STREQ (curr->name, ".") || STREQ (curr->name, "..")) >> + continue; >> + >> + free (fname); >> + fname = safe_malloc (g, strlen (curr->name) + path_len + 1); >> + sprintf (fname, "/var/lib/pacman/local/%...
2017 Oct 04
11
[PATCH 0/9] build: Require OCaml >= 4.02.
Per my previous email: https://www.redhat.com/archives/libguestfs/2017-September/msg00203.html I'd like to talk about requiring a more modern version of the OCaml compiler. These commits show some of the code changes which would be possible with OCaml >= 3.12 [which it turns out we already require by accident] and also with OCaml >= 4.02. The latter is my favoured option. Rich.
2020 Mar 27
0
Wine release 5.5
...s. dbghelp: Move reading debug base address from PEB to check_live_target. dbghelp: Remove unused code in module_find_cb. dbghelp: Use LONG_PTR instead of long type. rpcrt4: Fix use after free in get_iface_info. oleaut32: Fix handling dual interfaces in ITypeInfo::GetRefTypeInfo. jscript: Lookup the identifier in the named item's disp before the global context. jscript: Clear SCRIPTITEM_CODEONLY flag on script re-initialization. Jeff Smith (6): mshtml/tests: Add tests showing how toString has changed in IE9+. jscript: Set return object'...
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
2012 Oct 30
5
[PATCH v3 0/5] Add symbol versioning.
This is a simpler patch series to add symbol versioning. I have pushed patches 1-3 upstream. Rich.
2012 Mar 28
2
[PATCH v2] New APIs: mount-local and umount-local using FUSE
This version doesn't crash or cause hung processes or stuck mountpoints, so that's an improvement. Rich.
2012 Mar 27
3
[PATCH 0/3] Enable FUSE support in the API via 'mount-local' call.
This patch is just for review. It enables FUSE support in the API via two new calls, 'guestfs_mount_local' and 'guestfs_umount_local'. FUSE turns out to be very easy to deadlock (necessitating that the machine be rebooted). Running the test from the third patch is usually an effective way to demonstrate this. However I have not yet managed to produce a simple reproducer that
2012 Oct 30
7
[PATCH v2 0/7] Add symbol versioning (now working).
This rather more complex patch series adds symbol versioning (7/7 shows it in action). This works for me, tested by running old and new virt-inspector binaries against the new library. Rich.