Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 313877 - gnome-base/gvfs-1.4.3: Copying files between GVFS mounts causes truncation
Summary: gnome-base/gvfs-1.4.3: Copying files between GVFS mounts causes truncation
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-08 14:50 UTC by Dyweni
Modified: 2010-07-19 09:28 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dyweni 2010-04-08 14:50:20 UTC
Copying files at the command line between two gvfs mount points causes the files on the destination to become truncated to 0 bytes.

Reproducible: Always

Steps to Reproduce:
1. Mount root on server1 to folder /
2. Mount root on server2 to folder /
3. Open gnome-terminal
4. cd ~
5. cp '.gvfs/sftp for root on server1/usr/local/bin/file.sh' '.gvfs/sftp for root on server2/usr/local/bin/file.sh'


Actual Results:  
Running 'ls -laF /usr/local/bin/file.sh' on server2 shows it with a new time stamp and zero (0) bytes.


Expected Results:  
Running 'ls -laF /usr/local/bin/file.sh' on server2 shows it with the same time stamp and bytes and sha1sum of the original file on server1.


The same thing also happens if you open meld with both files, copy some changes from the first file to the second file, and then save the second file from within meld.



Here's portion of strace:

munmap(0x7f25b64c0000, 153842)          = 0
set_tid_address(0x7f25b64bd9d0)         = 26281
set_robust_list(0x7f25b64bd9e0, 0x18)   = 0
futex(0x7fff66cd9b2c, FUTEX_WAKE_PRIVATE, 1) = 0
futex(0x7fff66cd9b2c, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 1, NULL, 7f25b64bd700) = -1 EAGAIN (Resource temporarily unavailable)
rt_sigaction(SIGRTMIN, {0x7f25b59488c0, [], SA_RESTORER|SA_SIGINFO, 0x7f25b5952150}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0x7f25b5948950, [], SA_RESTORER|SA_RESTART|SA_SIGINFO, 0x7f25b5952150}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
brk(0)                                  = 0x15c5000
brk(0x15e6000)                          = 0x15e6000
geteuid()                               = 0
stat(".gvfs/sftp for root on server2/usr/local/bin/file.sh", {st_mode=S_IFREG|0700, st_size=4905, ...}) = 0
stat(".gvfs/sftp for root on server1/usr/local/bin/file.sh", {st_mode=S_IFREG|0700, st_size=4905, ...}) = 0
stat(".gvfs/sftp for root on server2/usr/local/bin/file.sh", {st_mode=S_IFREG|0700, st_size=4905, ...}) = 0
open(".gvfs/sftp for root on server1/usr/local/bin/file.sh", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0700, st_size=4905, ...}) = 0
open(".gvfs/sftp for root on server2/usr/local/bin/file.sh", O_WRONLY|O_TRUNC) = 4
fstat(4, {st_mode=S_IFREG|0700, st_size=0, ...}) = 0
read(3, "#!/usr/bin/perl\n\nuse strict;\nuse"..., 32768) = 4905
write(4, "#!/usr/bin/perl\n\nuse strict;\nuse"..., 4905) = 4905
read(3, "", 32768)                      = 0
close(4)                                = 0
close(3)                                = 0
close(0)                                = 0
close(1)                                = 0
close(2)                                = 0
exit_group(0)                           = ?




GVFS Version:   1.4.3



Emerge Info:

Portage 2.1.8.3 (default/linux/amd64/10.0, gcc-4.4.3, glibc-2.11-r1, 2.6.33-gentoo-20100402-1750 x86_64)
=================================================================
System uname: Linux-2.6.33-gentoo-20100402-1750-x86_64-AMD_Phenom-tm-_II_X2_545_Processor-with-gentoo-2.0.1
Timestamp of tree: Tue, 06 Apr 2010 13:30:01 +0000
app-shells/bash:     4.1_p2-r1
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.5-r1, 3.1.2-r1
dev-python/pycrypto: 2.1.0
dev-util/cmake:      2.8.1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1
sys-devel/gcc:       4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -march=amdfam10 -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-pipe -march=amdfam10 -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages installsources news parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.wetzlmayr.com/ http://gentoo.mirrors.hoobly.com/ http://gentoo.osuosl.org/ http://gentoo.arcticnetwork.ca/ http://gentoo.netnitco.net"
LANG="C"
LDFLAGS="-Wl,-O1"
LINGUAS="en_US"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/kde-sunset /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X acl acpi aio alsa amd64 archive aspell bash-completion berkdb bzip2 cairo cdda cddb cdr cleartype cli consolekit cracklib crypt cscope custom-cflags custom-optimization cxx dbus device-mapper dga disk-partition dri dvdr emerald exif fam fbcondecor ffmpeg fortran fuse gdbm gdu gecko gif glitz gmp gnome gnome-keyring gnutls gphoto2 gpm gstreamer gtk hal iconv java java6 jpeg libffi libnotify lightning lm_sensors lzo mbrola mmx modules mpeg mudflap multilib nautilus ncurses nls nptl nptlonly nsplugin opengl openmp optimized-qmake pam pcre perl playlist png policykit pppd python readline reflection replytolist samba secure-delete session sftp smp spell spl sse sse2 ssl startup-notification svg sysfs threads thumbnail tiff tk truetype udev unicode wmf xaw xcb xcomposite xinerama xorg xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Pacho Ramos gentoo-dev 2010-04-26 21:39:55 UTC
This looks to me more like an upstream issue, I would suggest you to try to report this upstream also: https://bugzilla.gnome.org

Thanks
Comment 2 Pacho Ramos gentoo-dev 2010-06-13 17:28:07 UTC
Is this still an issue with 1.6.2?
Comment 3 Pacho Ramos gentoo-dev 2010-07-16 12:35:07 UTC
Any news on this?