search for: tmp_file

Displaying 20 results from an estimated 21 matches for "tmp_file".

Did you mean: temp_file
2023 Apr 21
1
[PATCH] ocfs2: Fix wrong search logic in __ocfs2_resv_find_window
On Fri, Apr 21, 2023 at 03:35:01PM +0800, Joseph Qi wrote: > Hi, > Could you please share a reproducer? > Anyone could access & download the URL [1] (I wrote it in patch commit log) without register SUSE account. Please check attachment file, which I downloaded from [1] and modified under the BZ comment 1. The trigger method is also in comment 1, I copy here: ./defragfs_test.sh -d
2020 Aug 12
2
[PATCH v2] appliance: extract UUID from QCOW2 disk image
...!= 0) { + guestfs_int_external_command_failed (g, r, "qemu-img dd", NULL); + return -1; + } + + return 0; +} + +/** + * Get the UUID from the appliance disk image. + */ +static char * +get_root_uuid (guestfs_h *g, const char *appliance) +{ + char *uuid = NULL; + int ret; + char tmp_file[] = "/tmp/libguestfsXXXXXX"; + + uuid = do_get_root_uuid (g, appliance); + if (uuid) { + return uuid; + } + + if (!mktemp (tmp_file)) { + error (g, "get_root_uuid: mktemp failed"); + return NULL; + } + + ret = run_qemu_img_dd (g, appliance, tmp_file); + if (ret...
2020 Aug 12
0
[PATCH] appliance: extract UUID from QCOW2 disk image
...!= 0) { + guestfs_int_external_command_failed (g, r, "qemu-img dd", NULL); + return -1; + } + + return 0; +} + +/** + * Get the UUID from the appliance disk image. + */ +static char * +get_root_uuid (guestfs_h *g, const char *appliance) +{ + char *UUID = NULL; + int ret; + char tmp_file[] = "/tmp/libguestfsXXXXXX"; + + if (!mktemp (tmp_file)) { + error (g, "get_root_uuid: mktemp failed"); + return NULL; + } + + ret = run_qemu_img_dd (g, appliance, tmp_file); + if (ret == 0) { + UUID = do_get_root_uuid (g, tmp_file); + if (UUID) { + goto out...
2006 Aug 03
1
Strange file upload error
Hi There, So we are having this really strange file upload error. We can upload a file to rails, store it in the DB, and download it again all fine. We also have things set up to allow us to edit the file, and upload a new one to replace the existing file. This functionality works just fine for text files, but fails for microsoft word and PDF files. It''s really strange; we''re
2020 Aug 12
0
Re: [PATCH] appliance: extract UUID from QCOW2 disk image
...ce disk image. > >+ */ > >+static char * > >+get_root_uuid (guestfs_h *g, const char *appliance) > >+{ > >+ char *UUID = NULL; > > Generally, don't use uppercase for local variables, I'd rename it s/UUID/uuid/ > > >+ int ret; > >+ char tmp_file[] = "/tmp/libguestfsXXXXXX"; > >+ > >+ if (!mktemp (tmp_file)) { > >+ error (g, "get_root_uuid: mktemp failed"); > >+ return NULL; > > Hmm, if failed to create temp file, we still can try call do_get_root_uuid on original appliance image. T...
2020 Aug 12
0
Re: [PATCH] appliance: extract UUID from QCOW2 disk image
...t;>+static char * > >>+get_root_uuid (guestfs_h *g, const char *appliance) > >>+{ > >>+  char *UUID = NULL; > > > >Generally, don't use uppercase for local variables, I'd rename it s/UUID/uuid/ > > > >>+  int ret; > >>+  char tmp_file[] = "/tmp/libguestfsXXXXXX"; > >>+ > >>+  if (!mktemp (tmp_file)) { > >>+    error (g, "get_root_uuid: mktemp failed"); > >>+    return NULL; > > > >Hmm, if failed to create temp file, we still can try call do_get_root_uuid on orig...
2005 Apr 04
0
io timeout after 180 seconds
...$s_log .= writeln("Created directory for $s_configName: $s_fullPath", true); ~ } ~ // {{{ rotate the current list of backups if we can ~ if ($tmp_handle = opendir($s_fullPath)) { ~ $a_dirList = array(); ~ $a_dirListTypeBelow = array(); ~ while (false !== ($tmp_file = readdir($tmp_handle))) { ~ if (is_dir($s_fullPath . $tmp_file)) { ~ if (preg_match(":$s_backupType\.\d+$:", $tmp_file)) { ~ $a_dirList[] = $tmp_file; ~ } ~ // for later we need the directories of the type below...
2011 Jul 11
0
stuck with permissions in using FileUtils
...clip_file)) # => NickFaldo the ffmpeg transcoding process, is writing an output file into the tmp dir , without any problem @tmp_dir = FileUtils.mkdir_p(Rails.root.join("tmp", "converted", "#{clip[:id]}")) # => ( "../clips/tmp/65i" ) @tmp_file = File.join(@tmp_dir, "#{basename}.mp4") # => ( "../clips/tmp/65/NickFaldo.mp4" ) until then everything works as expected ... then I want to bring back the transcoded clip in place of the original one ... with the same base name but with an .mp4 extension @convert...
2007 Dec 17
2
configure and assembler
I'm attempting to install a product and it's failing the compiler check. CentOS 5.1 + echo='/bin/echo -e' + rm -rf configure-tmp + mkdir configure-tmp + tmp_file=configure-tmp/xxx + makedirs=. + /bin/echo -e 'Checking C++ compiler... \c' Checking C++ compiler... + cat + CXX=unknown + for i in '"CC"' '"g++"' '"cc"' '"$CC"' + CC -c configure-tmp/xxx.C + for i in '"CC&quot...
2004 Aug 17
1
[Bug] LTP: mkdir fail after setreuid
...>lchown02 3 BROK : Remaining cases broken >lchown02 4 BROK : Remaining cases broken >lchown02 5 BROK : Remaining cases broken >lchown02 6 BROK : Remaining cases broken >lchown02 7 BROK : Remaining cases broken >lseek07 1 FAIL : read() failed on tmp_file, error=3D14 >lseek09 1 FAIL : read() failed on tmp_file, error=3D14 >lseek10 1 BROK : mknod(tmp_file1, 0644, 0) Failed,=20 >errno=3D17 :File >exists >lseek10 2 BROK : Remaining cases broken >lseek10 3 BROK : Remaining cases broken >lstat02 1 BRO...
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
2006 Jul 11
0
Notebook suspend instructions -- Gentoo to Centos
...L_CONFIG does not seem to have a SLEEP line. Well maybe I was not looking in the right place for the kernel_config. I was looking in /usr/src/ But echo -n mem > /sys/power/state really puts my system into a suspend mode fast. Perhaps part of the problem is with cat /proc/bus/pci/$ID > $TMP_FILE as there are a couple of directories in this directory. It is rather hard to supply more detailed information, as I have to keep rebooting between XP and Linux until I get Thunderbird migrated...
2013 Sep 06
0
[PATCH 4/5] sysprep: remove the custom tcp wrappers
...create mode 100644 sysprep/sysprep_operation_tcp_wrapper.ml diff --git a/sysprep/Makefile.am b/sysprep/Makefile.am index eb372aa..aa49605 100644 --- a/sysprep/Makefile.am +++ b/sysprep/Makefile.am @@ -67,6 +67,7 @@ operations = \ ssh_hostkeys \ ssh_userdir \ sssd_db_log \ + tcp_wrapper \ tmp_files \ udev_persistent_net \ user_account \ diff --git a/sysprep/sysprep_operation_tcp_wrapper.ml b/sysprep/sysprep_operation_tcp_wrapper.ml new file mode 100644 index 0000000..77f1e0a --- /dev/null +++ b/sysprep/sysprep_operation_tcp_wrapper.ml @@ -0,0 +1,52 @@ +(* virt-sysprep + * Copyright (C) 2...
2013 Sep 06
7
[PATCH 1/5] sysprep: remove tmp files
This removes tmp files under /tmp and /var/tmp. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com> --- sysprep/Makefile.am | 1 + sysprep/sysprep_operation_tmp_files.ml | 52 ++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 sysprep/sysprep_operation_tmp_files.ml diff --git a/sysprep/Makefile.am b/sysprep/Makefile.am index fcd17fc..b89345a 100644 --- a/sysprep/Makefile.am +++ b/sysprep/Makefile.am @@ -65,6 +65,7 @@ opera...
2020 May 04
0
[PATCH 4/4] sysprep: add FreeIPA offline unenrollment (RHBZ#1789592)
...+++++ 2 files changed, 66 insertions(+) create mode 100644 sysprep/sysprep_operation_unenroll_freeipa.ml diff --git a/sysprep/Makefile.am b/sysprep/Makefile.am index 451a3478f..30254c717 100644 --- a/sysprep/Makefile.am +++ b/sysprep/Makefile.am @@ -66,6 +66,7 @@ operations = \ sssd_db_log \ tmp_files \ udev_persistent_net \ + unenroll_freeipa \ user_account \ utmp yum_uuid diff --git a/sysprep/sysprep_operation_unenroll_freeipa.ml b/sysprep/sysprep_operation_unenroll_freeipa.ml new file mode 100644 index 000000000..5dd2bcc61 --- /dev/null +++ b/sysprep/sysprep_operation_unenroll_freeip...
2004 Jul 06
3
posix
mainly question for the intel folks, any chance to rerun the ltp testsuites to see how we are doing these days with all the changes ? thanks :) Wim
2020 May 07
3
[PATCH v2 0/2] add FreeIPA offline unenrollment (RHBZ#1789592)
This patch series adds a new virt-sysprep operation to offline unenroll a guest from FreeIPA. It does so by removing some configuration files and certificates. Changes from v1: - the other patches were pushed, as unrelated and approved - created a new kerberos-hostkeytab operation Pino Toscano (2): sysprep: add IPA offline unenrollment (RHBZ#1789592) sysprep: add Kerberos keytab file removal
2020 May 04
7
[PATCH 0/4] sysprep: add FreeIPA offline unenrollment (RHBZ#1789592)
This patch series adds a new virt-sysprep operation to offline unenroll a guest from FreeIPA. It does so by removing some configuration files and certificates. It requires a change in libguestfs-common before the series is applied. Pino Toscano (4): customize: port do_run to run_in_guest_command sysprep: add a update_system_ca_store side effect sysprep: ca-certificates: request system CA
2010 Apr 22
1
Transport endpoint not connected
Hey guys, I've recently implemented gluster to share webcontent read-write between two servers. Version : glusterfs 3.0.4 built on Apr 19 2010 16:37:50 Fuse : 2.7.2-1ubuntu2.1 Platform : ubuntu 8.04LTS I used the following command to generate my configs: /usr/local/bin/glusterfs-volgen --name repstore1 --raid 1 10.10.130.11:/data/export
2014 Jan 10
3
[PATCH 0/3] Timezone and keyboard layout settings in virt-builder and virt-sysprep.
Setting timezone is easy. It turns out to be almost impossible to set keyboard layout in virt-builder sanely, so I have added some examples instead. Coming up next, setting languages in virt-builder (clue: very very very hard). Rich.