Bug 179419

Summary: problem with copying files of size greater than 2GB
Product: [Fedora] Fedora Reporter: Marcin Załęczny <m_zaleczny>
Component: mcAssignee: Jindrich Novy <jnovy>
Status: CLOSED INSUFFICIENT_DATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4CC: gajownik, leonard-rh-bugzilla, pknirsch
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-02-23 06:37:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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):
mc-4.6.1a-4.FC4

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:
None.

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())
            continue;
        break;
    }
...

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.