Bug 179419 - problem with copying files of size greater than 2GB
Summary: problem with copying files of size greater than 2GB
Alias: None
Product: Fedora
Classification: Fedora
Component: mc (Show other bugs)
(Show other bugs)
Version: 4
Hardware: i686 Linux
Target Milestone: ---
Assignee: Jindrich Novy
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2006-01-31 07:03 UTC by Marcin Załęczny
Modified: 2013-07-02 23:14 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-02-23 06:37:17 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Marcin Załęczny 2006-01-31 07:03:46 UTC
Description of problem:

Problem with copying files greater than 2GB through built in mc
(mc-4.6.1a-4.FC4) ftp. After copied 2GB data, mc fall into an
infinited loop taking up to 76% CPU. 

Version-Release number of selected component (if applicable):

How reproducible:
Try copy file greater than 2GB through built in mc ftp service.

Steps to Reproduce:
1. Select Right->Ftp connection from main menu in mc.
2. Give right ftp server address.
3. Try to copy a file greater than 2GB from remote server
Actual results:
Infinited loop during copying and average 70% of CPU usage.

Expected results:
Correct finishing of copying.

Additional info:

Comment 1 Jindrich Novy 2006-01-31 16:09:34 UTC
Mysteriously it works for me when downloading 2.4GB file from a remote machine
using internal mc's ftp. However when looking into the code I see bad things:

from vfs/ftpfs.c:

static int
ftpfs_linear_read (struct vfs_class *me, struct vfs_s_fh *fh, void *buf, int len)
    int n;
    struct vfs_s_super *super = FH_SUPER;

    while ((n = read (FH_SOCK, buf, len))<0) {
        if ((errno == EINTR) && !got_interrupt())

So at the first look the ftp linear read should work for maximum of 2^31-1 bytes
to be read....

Comment 2 Jindrich Novy 2007-01-18 09:44:37 UTC
Do you still see problems with copying >2GB files? It seems to be fixed in fc6
and on.

Comment 3 petrosyan 2008-02-23 06:37:17 UTC
Fedora Core 4 is no longer maintained.

Setting status to "INSUFFICIENT_DATA". If you can reproduce this bug in the
current Fedora release, please reopen this bug and assign it to the
corresponding Fedora version.

Note You need to log in before you can comment on or make changes to this bug.