Displaying 6 results from an estimated 6 matches for "errno_eperm".
2015 Mar 26
2
[PATCH v3] customize: fix --upload to FAT partition (RHBZ#1196101)
Some filesystems, such as FAT doesn't support file
ownership, so show warning instead of error on EPERM.
Maros Zatko (1):
customize: fix --upload to FAT partition (RHBZ#1196101)
customize/customize_run.ml | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
--
1.9.3
2017 Sep 25
0
[PATCH] customize: Unconditionally set the machine-id if not set already.
...= Hashtbl.create 13 in
let set_password user pw =
@@ -399,8 +421,8 @@ exec >>%s 2>&1
let uid, gid = statbuf.st_uid, statbuf.st_gid in
let chown () =
try g#chown uid gid dest
- with Guestfs.Error m as e ->
- if g#last_errno () = Guestfs.Errno.errno_EPERM
+ with G.Error m as e ->
+ if g#last_errno () = G.Errno.errno_EPERM
then warning "%s" m
else raise e in
chown ()
--
2.13.2
2015 Aug 24
3
[PATCH 1/3] ocaml: dynamically generate the content of Guestfs.Errno
...interface. *)
let rec generate_ocaml_mli () =
generate_header OCamlStyle LGPLv2plus;
@@ -132,10 +140,12 @@ val last_errno : t -> int
which you can use to test the return value of {!Guestfs.last_errno}. *)
module Errno : sig
- val errno_EINVAL : int
- val errno_ENOTSUP : int
- val errno_EPERM : int
- val errno_ESRCH : int
+";
+ List.iter (
+ fun e ->
+ pr " val errno_%s : int\n" e
+ ) ocaml_errnos;
+ pr "\
end
";
@@ -287,14 +297,15 @@ external event_to_string : event list -> string
external last_errno : t -> int = \"ocaml_guestfs_...
2015 Mar 25
1
[PACTH v2] customize: fix --upload to FAT partition (RHBZ#1196101)
FAT doesn't support file ownership, so show info instead
of error.
---
customize/customize_run.ml | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
diff --git a/customize/customize_run.ml b/customize/customize_run.ml
index dbb77df..40d19ac 100644
--- a/customize/customize_run.ml
+++ b/customize/customize_run.ml
@@ -289,8 +289,20 @@ exec >>%s 2>&1
let
2015 Mar 26
0
[PATCH v3] customize: fix --upload to FAT partition (RHBZ#1196101)
...perm land 0o7777 (* sticky & set*id *) in
g#chmod perms dest;
let uid, gid = statbuf.st_uid, statbuf.st_gid in
- g#chown uid gid dest
+ let chown () =
+ try g#chown uid gid dest
+ with Guestfs.Error m as e ->
+ if g#last_errno () = Guestfs.Errno.errno_EPERM
+ then warning "%s" m
+ else raise e in
+ chown ()
| `Write (path, content) ->
msg (f_"Writing: %s") path;
--
1.9.3
2015 Jun 18
3
[PATCH v2 0/3] daemon: parted: Always use -s option even with -m.
version 2:
- Turn the "unrecognised disk label" error into errno == EINVAL
- Fix virt-alignment-scan
- Rework the fix for virt-v2v bug 1232192 (see description of patch 3/3)