[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#447153: /usr/bin/scp: Fails to notice write errors



On 18/10/2007, Colin Watson <cjwatson@debian.org> wrote:
> On Thu, Oct 18, 2007 at 03:32:27PM +0200, Hramrach wrote:
> > When copying to a cifs share scp fails to notice write errors and
> > happily continues copying when there is no disk space.
> > Note that cifs probably only reports these errors on close(), not
> > write().

cp reports the error:

cp firefox-2.0.0.4.tar.gz /mnt/
cp: closing `/mnt/firefox-2.0.0.4.tar.gz': No space left on device

scp produces files of the same size with different content for small
files and truncated (although not always zero) files for larger files,
and notices no problem.

>
> Could I get 'scp -vvv' output, please?
>
The output w/o session setup:

debug1: Sending command: scp -v -f OOo*
debug2: channel 0: request exec confirm 0
debug2: fd 3 setting TCP_NODELAY
debug2: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug2: channel 0: rcvd adjust 131072
debug2: channel 0: rcvd ext data 82
Sending file modes: C0644 10711
OOo_2.2.0_LinuxIntel_install_en-US.tar.gz.torrent
debug2: channel 0: written 82 to efd 6
Sink: C0644 10711 OOo_2.2.0_LinuxIntel_install_en-US.tar.gz.torrent
debug2: channel 0: rcvd ext data 82
Sending file modes: C0644 20774
OOo_2.2.1_LinuxIntel_install_en-US.tar.gz.torrent
debug2: channel 0: written 82 to efd 6
Sink: C0644 20774 OOo_2.2.1_LinuxIntel_install_en-US.tar.gz.torrent
debug2: channel 0: rcvd ext data 93
Sending file modes: C0644 3098
OOo_2.2.1rc3_20070529_LinuxIntel_install_en-US.tar.gz.torrent
debug2: channel 0: written 93 to efd 6
Sink: C0644 3098 OOo_2.2.1rc3_20070529_LinuxIntel_install_en-US.tar.gz.torrent
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug2: channel 0: rcvd eof
debug2: channel 0: output open -> drain
debug2: channel 0: obuf empty
debug2: channel 0: close_write
debug2: channel 0: output drain -> closed
debug2: channel 0: rcvd close
debug2: channel 0: close_read
debug2: channel 0: input open -> closed
debug3: channel 0: will not send data after close
debug2: channel 0: almost dead
debug2: channel 0: gc: notify user
debug2: channel 0: gc: user detached
debug2: channel 0: send close
debug2: channel 0: is dead
debug2: channel 0: garbage collecting
debug1: channel 0: free: client-session, nchannels 1
debug3: channel 0: status: The following connections are open:
  #0 client-session (t4 r0 i3/0 o3/0 fd -1/-1 cfd -1)

debug3: channel 0: close_fds r -1 w -1 e 6 c -1
debug1: fd 0 clearing O_NONBLOCK
debug1: fd 1 clearing O_NONBLOCK
debug1: fd 2 clearing O_NONBLOCK
debug1: Transferred: stdin 0, stdout 0, stderr 0 bytes in 0.5 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0
debug1: Exit status 0




Reply to: