Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 132291 - sys-apps/coreutils-5.94-r1 makes "mv -g" non-functional
Summary: sys-apps/coreutils-5.94-r1 makes "mv -g" non-functional
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High trivial
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-04 15:51 UTC by Stefan Behte (RETIRED)
Modified: 2006-08-24 05:00 UTC (History)
1 user (show)

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


Attachments
+ Initalize pbar_{show,delay,min_est} in cp_option_init() in mv.c (gen-progress-bar.patch,12.54 KB, patch)
2006-08-23 13:15 UTC, Emil Beinroth
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Behte (RETIRED) gentoo-dev Security 2006-05-04 15:51:19 UTC
Hello!
I've upgraded from sys-apps/coreutils-5.2.1-r7 to sys-apps/coreutils-5.94-r1 recently. Some time later I noticed that "mv -g" doesn't show the progress bar anymore and "mv --progress" doesn't work either. Thats why I'm reporting this bug.

BTW: I know "-g" is not in the man-page but that's because Gentoo uses the manpage from the man-pages package, not from coreutils (see http://bugs.gentoo.org/show_bug.cgi?id=105188).
Comment 1 SpanKY gentoo-dev 2006-05-05 18:26:21 UTC
`mv -g` seems to only work with large files ... it wont show for small ones
Comment 2 SpanKY gentoo-dev 2006-05-06 00:36:13 UTC
well, according to original author, this is by design ... but i consider it a bug so i'll clean up the code ;)
Comment 3 Stefan Behte (RETIRED) gentoo-dev Security 2006-05-06 02:05:06 UTC
Well I know it usually only works for large files, but in my case, it didn't work at all (I copied a 1GB file!).
A friend of mine has the same problem, but he was too lazy to file a bug :(
So I'm not the only one where it doesn't work.
Comment 4 Stefan Behte (RETIRED) gentoo-dev Security 2006-05-06 08:01:00 UTC
BTW: "cp -g" still works as usual here, might be of interest if the initial patch was included in both tools.
Comment 5 SpanKY gentoo-dev 2006-05-07 01:50:20 UTC
hmm, where are you moving the files ?  if you move the files on the same partition, then there wont be a progress bar as the move is instantaneous (done via a rename() rather than a copy())
Comment 6 Stefan Behte (RETIRED) gentoo-dev Security 2006-05-07 04:30:43 UTC
Yes I know; I moving to a mounted samba share.
Comment 7 SpanKY gentoo-dev 2006-05-07 12:20:48 UTC
you could try 5.94-r3 ... i cleaned up the progress patch in that version

note that if the file takes less than 5 seconds to transfer, the progress bar may not come up
Comment 8 Stefan Behte (RETIRED) gentoo-dev Security 2006-05-07 14:55:44 UTC
No, it still doesn't work. Copying the file took 28 seconds, but nothing showed up.
Comment 9 Tobias Kaminsky 2006-08-05 06:32:27 UTC
Any Update? It still does not work with:

* sys-apps/coreutils
Installed:           5.96

Tobi
Comment 10 SpanKY gentoo-dev 2006-08-05 16:16:32 UTC
latest version works for me, so there's nothing i can really do over here
Comment 11 Emil Beinroth 2006-08-23 13:15:16 UTC
Created attachment 94962 [details, diff]
+ Initalize pbar_{show,delay,min_est} in cp_option_init() in mv.c

It looks like the problem is that the pbar-variables pbar_{show,delay,min_est} are only initalized in rm_option_init(), not cp_option_init().
Comment 12 SpanKY gentoo-dev 2006-08-23 13:50:44 UTC
added to cvs, thanks !
Comment 13 Stefan Behte (RETIRED) gentoo-dev Security 2006-08-24 05:00:52 UTC
Thank you very much for the patch!
I'll have a try when I am at home.