#760651 incorrect ETA when sftping files with deref symlinks

Package:
mc
Source:
mc
Description:
Midnight Commander - a powerful file manager
Submitter:
Date:
2014-09-08 15:00:19 UTC
Severity:
normal
#760651#5
Date:
2014-09-06 14:43:04 UTC
From:
To:
I am copying some files which on remote end are under git-annex, thus
symlinks.


 ┌────────────────────────────────────────────────────────────────────────────── Copy ───────────────────────┐
 │ Source                                                                                                    │
 │ sftp://xxxxxxx/xxxxxxxx.1.avi                                                                             │
 │ Target                                                                                                    │
 │ /media/sdb/f/xxxxxxxx.1.avi                                                                               │
 │    [                                                                                            ]  92%    │
 │ ETA 0:01.47 (848,57 KB/s)                                                                                 │
 ├──────────────────────────────────────────────────────────────────────── Total: 989M/588 ──────────────────┤
 │    [                                                                                            ] 100%    │
 │ Files processed: 0/4                                                                                      │
 │ Time: 0:19.52 ETA -2147483648:-2147483648.-2147483648 (848,57 K                                           │
 ├───────────────────────────────────────────────────────────────────────────────────────────────────────────┤
 │                                                                  [ Skip ] [ Suspend ] [ Abort ]           │
 └───────────────────────────────────────────────────────────────────────────────────────────────────────────┘

#760651#10
Date:
2014-09-06 16:06:47 UTC
From:
To:
Hi Yarik,

A new version (4.8.13) has just been released but didn't make it into
Debian yet. Does it still have the same problem? If yes, then it should
be reported upstream.

Thanks,

#760651#15
Date:
2014-09-08 14:12:31 UTC
From:
To:
wow -- nice to see more vc/FAR-inspired linux folks? ;)

I didn't try recent release -- theoretically it is for the debian
maintainer to figure those details out ;)

#760651#20
Date:
2014-09-08 14:43:37 UTC
From:
To:
I used to be an active contributor to mc, until "you know what"
happened :-/ The panels of nc3 are my first memory of a computer ;-)

Okay, I managed to compile 4.8.13 with libssh2, and even got to login
into local host (for some reason I'm unable to connect to any remote
hosts though), so I copied a symlink to a large file and it just did
exactly that (copied the symlink, not the file). Then I tried to simply
copy a large file to see if I can reproduce the problem anyways, and it
didn't work. I guess my libssh2 version (1.2.6-1) is too old...

In the mean time, can you tell me what the symlink layout is?

#760651#25
Date:
2014-09-08 14:50:25 UTC
From:
To:
try marking the option 'copy links' or whatever it is -- then it would
deref the symlink

eh -- do not have access to that box atm.  could do later if necessary
to reproduce 100% identical

#760651#30
Date:
2014-09-08 14:58:35 UTC
From:
To:
Yeah

    [ ] Follow links

works!

Okay, on small files it shows

"-31: Failed opening remote file"

and then just works, and the progress indicator is correct.

On large files i.e. texlive2014-20140525.iso it shows that the size is
16384P (yeah, petabytes) and doesn't even start copying.

I guess before we do further tests I should upgrade libssh2, but in any
case, I have a feeling that it doesn't have to do with symlinks, but
rather with large files.