search for: copy_fil

Displaying 20 results from an estimated 65 matches for "copy_fil".

Did you mean: copy_file
2004 Feb 17
1
[patch] Make robust_rename() handle EXDEV.
All callers of robust_rename() call copy_file() if EXDEV is received. This patch moves the copy_file() call into robust_rename(). Patch Summary: -12 +1 backup.c -15 +2 rsync.c -9 +33 util.c -------------- next part -------------- patchwork diff util.c --- util.c 2004-02-17 09:58:44.000000000 -0500 +++ util.c 2004-02...
2018 Nov 06
7
[PATCH 0/3] Install QEMU-GA from oVirt guest tools ISO on Linux
This installs packages with QEMU Guest Agent when converting Linux machine. The packages should be available on guest tools ISO. The patches work "as-is" but probably deserve some more attention: - it is "abusing" Winows_virtio code but renaming/refactoring everything to remove "windows" from the name and use "guest tools" seems like a lot of unnecesary
2018 Nov 06
0
[PATCH 1/3] v2v: refactor copy_drivers() in Windows_virtio
Changed the function to be more generic and renamed to copy_files. The only change in behavior is in produced debug messages. Signed-off-by: Tomáš Golembiovský <tgolembi@redhat.com> --- v2v/windows_virtio.ml | 52 ++++++++++++++++++++++++++----------------- 1 file changed, 32 insertions(+), 20 deletions(-) diff --git a/v2v/windows_virtio.ml b/v2v/windo...
2010 Mar 13
1
Testing file upload (Sinatra, RSpec, Rack-Test)
...#39;') Dir[''files/*''].should include(''files/test_file.png'') end end # controller.rb require ''sinatra'' require ''fileutils'' post ''/'' do tempfile = params[''file''][:tempfile] FileUtils.copy_file(tempfile.path, ''files'') end But when I ran... $ spec -f specdoc controller.rb ...I get the following output. Application - should accept uploaded files and save them into the `files` directory (FAILED - 1) 1) ''Application should accept uploaded files and save them i...
2018 Nov 07
1
Re: [PATCH v3 0/3] Install QEMU-GA from oVirt guest tools ISO on Linux
...7 Nov 2018 15:31:56 +0000 "Richard W.M. Jones" <rjones@redhat.com> wrote: > On Wed, Nov 07, 2018 at 12:53:17PM +0100, Tomáš Golembiovský wrote: > > changes in v3: > > - fix call to install_local > > > > changes in v2: > > - moved copy_drivers above copy_files > > - renamed copy_files to copy_from_virtio_win > > - renamed install to install_local > > - use rpm instead of yum > > > > This installs packages with QEMU Guest Agent when converting Linux machine. The > > packages should be available on guest tools ISO. Th...
2009 May 14
1
does --whole-file always work?
Hi, Running rsync with --whole-file yields poorer performance results than a simple "cp". Looking at the code - it looks like "copy_file" isn't really called when I add the --whole-file flag. The regular "receive_data" is doing the copy. Anyone encountered this? No other special flags (rsync --whole-file -av /mnt/ttt /home/sss/ ). Thanks, Amir -------------- next part -------------- HTML attachment scrubbed and...
2007 Mar 28
1
attachment_fu & update_attributes... bug?
...ere''s the error I get: No such file or directory -public/db_files/songs/4/Song.mp3 /usr/lib/ruby/1.8/fileutils.rb:1182:in `stat'' /usr/lib/ruby/1.8/fileutils.rb:1182:in `lstat'' /usr/lib/ruby/1.8/fileutils.rb:1160:in `stat'' /usr/lib/ruby/1.8/fileutils.rb:1242:in `copy_file'' /usr/lib/ruby/1.8/fileutils.rb:459:in `copy_file'' /usr/lib/ruby/1.8/fileutils.rb:383:in `cp'' /usr/lib/ruby/1.8/fileutils.rb:1377:in `fu_each_src_dest'' /usr/lib/ruby/1.8/fileutils.rb:1393:in `fu_each_src_dest0'' /usr/lib/ruby/1.8/fileutils.rb:1375:in `fu...
2007 Oct 28
2
DO NOT REPLY [Bug 5051] New: --copy-dest copies should use a temporary file unless --inplace
...Platform: x86 OS/Version: Linux Status: NEW Severity: minor Priority: P3 Component: core AssignedTo: wayned@samba.org ReportedBy: matt@mattmccutchen.net QAContact: rsync-qa@samba.org Currently, --copy-dest local copies use copy_file(), which writes the destination file at its final name. I think these copies should use a temporary file unless --inplace is given, just like ordinary file transfers. Users who have a program that watches the destination and processes non-temporary files when they appear will appreciate this....
2003 Jan 21
1
ext3 is still locking up
...ges Unable to handle kernel NULL pointer dereference at virtual address 00000015 printing eip: c0117289 *pde = 00000000 Oops: 0002 autofs tulip 8139too mii ipchains ide-cd cdrom usb-uhci usbcore ext3 jbd CPU: 0 EIP: 0010:[<c0117289>] Not tainted EFLAGS: 00010202 EIP is at copy_files [kernel] 0x169 (2.4.18-19.7.x) eax: 00000001 ebx: cd37ac84 ecx: c7bcf0a0 edx: 00000338 esi: cd37ab4c edi: cac7decc ebp: cac7de40 esp: ca5fdf44 ds: 0018 es: 0018 ss: 0018 Process httpd (pid: 650, stackpage=ca5fd000) Stack: 0000001b 00000003 00000000 00000360 c7bcf0a0 cd37aac0...
2002 Dec 05
1
Patch to ignore exluded files.
.../* move tmp file over real file */ > if (robust_rename(fnametmp,fname) != 0) { > if (errno == EXDEV) { > /* rename failed on cross-filesystem link. > Copy the file instead. */ > - if (copy_file(fnametmp,fname, file->mode & > INITACCESSPERMS)) { > + if (copy_file(fnametmp,fname, file->mode)) { > rprintf(FERROR,"copy %s -> %s : %s\n", > fnametmp,fname,strerror(er...
2003 May 23
1
PATCH: better handling for write failures (disk full)
...around" this problem by using "-T", putting the received file in temp space (assuming it's big enough). That allows the receive to complete without error (avoiding the abort). Then finish_transfer() will copy the file from the temp space, overwriting the destination file using copy_file(), which usually avoids filling the destination partition. Thus, using "-T" is the only way to transfer into a nearly full partition. However, there is one other problem: if copy_file() fills up the destintation partition, it will fail. At least it gives a valid error message with &qu...
2018 Nov 07
0
Re: [PATCH v3 0/3] Install QEMU-GA from oVirt guest tools ISO on Linux
On Wed, Nov 07, 2018 at 12:53:17PM +0100, Tomáš Golembiovský wrote: > changes in v3: > - fix call to install_local > > changes in v2: > - moved copy_drivers above copy_files > - renamed copy_files to copy_from_virtio_win > - renamed install to install_local > - use rpm instead of yum > > This installs packages with QEMU Guest Agent when converting Linux machine. The > packages should be available on guest tools ISO. The patches work "as-is&quo...
2002 Jul 24
0
couple of minor fixes to rsync 2.5.5
...mp, file, NULL, 0); /* move tmp file over real file */ if (robust_rename(fnametmp,fname) != 0) { if (errno == EXDEV) { /* rename failed on cross-filesystem link. Copy the file instead. */ - if (copy_file(fnametmp,fname, file->mode & INITACCESSPERMS)) { + if (copy_file(fnametmp,fname, file->mode)) { rprintf(FERROR,"copy %s -> %s : %s\n", fnametmp,fname,strerror(errno));...
2006 Sep 01
0
Add --no-tweak-hlinked, etc.
...n --no-tweak-hlinked to tell the receiving rsync not to change the attributes of an existing destination file with more than one link. Instead, rsync would copy the file and move the copy over the link to the shared original. I'm thinking about how best to implement this. I would love to use copy_file(fname, fname). That opens the file, deletes it, and then creates a new one by the same name, so it works; however, if rsync is interrupted, data is lost. Using an rsync-style temporary file would be good, but copy_file would have to be changed. It occurs to me that --copy-dest local copies shou...
2013 Aug 12
2
[Bug 10081] New: Multiple rsync instances conflict
...ntact: rsync-qa at samba.org When running multiple instances of rsync with "--backup" option on same file (for example in case of intersecting include-files), few of them can exit with exitcode "23". It happens due to nonatomicity of robust_unlink()&do_open() operation in copy_file(). While one of instances is proceeding between robust_unlink() and do_open(), another instance can run do_open(). So the first instance will fail on do_open() due to flag "O_EXCL". I suggest to remove the flag "O_EXCL" if copy_file() is called from make_backup() function. Ov...
2009 Sep 15
1
Strange error no idea -fileutils.rbThumbs.db (Errno::EACCES)
...`initialize'': Permission d enied - D:/2_Rails_WWW/rails_apps/footballstars/public/images/active_scaffold/de fault/Thumbs.db (Errno::EACCES) from D:/2_Rails_WWW/ruby/lib/ruby/1.8/fileutils.rb:1262:in `open'' from D:/2_Rails_WWW/ruby/lib/ruby/1.8/fileutils.rb:1262:in `copy_file'' from D:/2_Rails_WWW/ruby/lib/ruby/1.8/fileutils.rb:1261:in `open'' from D:/2_Rails_WWW/ruby/lib/ruby/1.8/fileutils.rb:1261:in `copy_file'' from D:/2_Rails_WWW/ruby/lib/ruby/1.8/fileutils.rb:1231:in `copy'' from D:/2_Rails_WWW/ruby/l...
2018 Nov 13
8
[PATCH v4 0/3] Install QEMU-GA from oVirt guest tools ISO on Linux
changes in v4: - fix call to install_local changes in v2: - moved copy_drivers above copy_files - renamed copy_files to copy_from_virtio_win - renamed install to install_local - use rpm instead of yum This installs packages with QEMU Guest Agent when converting Linux machine. The packages should be available on guest tools ISO. The patches work "as-is" but probably deserve some m...
2018 Nov 13
4
[PATCH v5 0/3] Install QEMU-GA from oVirt guest tools ISO on Linux
changes in v5: - simplified expression in copy_drivers - new commit fixing path constructions - indentation fixes changes in v4: - fix call to install_local changes in v2: - moved copy_drivers above copy_files - renamed copy_files to copy_from_virtio_win - renamed install to install_local - use rpm instead of yum This installs packages with QEMU Guest Agent when converting Linux machine. The packages should be available on guest tools ISO. The patches work "as-is" but probably deserve some m...
2003 May 20
0
patch for better handling of write failures (disk full)
...39;t correctly pick this up and it in turn aborts. People have "worked around" this problem by using "-T", putting the received file in temp space (assuming it's big enough). That allows the receive to complete without error, but then finish_transfer() will get an error in copy_file() copying from the temp space to the destination (which may presumably still fill up). At least this tells you about the error and doesn't blow up, but it always leaves the partially transferred file (in my case, if it fills the small partition, I don't want the partially transferred fil...
2016 Jan 22
1
[supermin] [PATCH] ext2: check for needed block size
...52,6 +52,9 @@ /* fts.h in glibc is broken, forcing us to use the GNUlib alternative. */ #include "fts_.h" +/* How many blocks of size S are needed for storing N bytes. */ +#define ROUND_UP(N, S) (((N) + (S) - 1) / (S)) + struct ext2_data { ext2_filsys fs; @@ -629,6 +632,7 @@ ext2_copy_file (struct ext2_data *data, const char *src, const char *dest) errcode_t err; struct stat statbuf; struct statvfs statvfsbuf; + size_t blocks; if (data->debug >= 3) printf ("supermin: ext2: copy_file %s -> %s\n", src, dest); @@ -649,6 +653,20 @@ ext2_copy_file (...