bugdoClone - Bugs: bug #42594, DoClone on 32bit system only won't...

 
 

bug #42594: DoClone on 32bit system only won't write > 2 GB

Submitter:  None
Submitted:  Sat 21 Jun 2014 07:30:19 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  jllledo
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 10 Jul 2014 01:22:21 AM UTC, comment #5: 

Thanks, that corrects the problem.

doClone 0.7.0-1 packages (i386, amd64 & source) built for MEPIS 12, MX-14, or any other debian wheezy based distribution are attached.  They are also available in the testing section of the MEPIS Community Repository.


(file #31694)

Anonymous
Sun 06 Jul 2014 09:46:45 AM UTC, comment #4: 

Hi!

I've wrote a patch taht fixes th problem. Would you like to test it?

You must follow these steps:
1- git clone git://git.sv.gnu.org/doclone.git
2- cd doclone/
3- git apply /path/to/doclone_42594.patch
4- autoreconf -i
5- ./configure && make
6- Repeat your test

Thanks for your help!

(file #31680)

Joan Lledó <jllledo>
Group administrator
Tue 24 Jun 2014 05:47:56 PM UTC, comment #3: 

Hi,

thanks for the information. It reduces my searching area.

Yes, the ncurses interface looks for images ending with the extension "*.doclone". But you can use any other name for the image files by using the command line interface. You can run "doclone --help" to view a brief help text.

Joan Lledó <jllledo>
Group administrator
Tue 24 Jun 2014 05:07:27 PM UTC, comment #2: 

I've tested on two different 32bit setups.  In a qemu VM I was creating an image of an ext3 partition, written to a file on an ext3 partition on a separate drive.

Then on real hardware on a different machine, I tried writing an image of an ext4 partition to a file on an ext3 partition on the same physical drive.

Both times it stopped at the same file size.

Tests on 64bit worked properly in the VM & on real hardware including limited testing across the LAN from one machine to another.

In that test, when I tried to restore the partition, the ncurses interface wouldn't show my image file in the select dialog.  The restore did complete successfully using the command line so the image was good.

Is there a specific file naming convention that the ncurses front end is looking for?

Thanks for your help.

Anonymous
Tue 24 Jun 2014 04:26:39 PM UTC, comment #1: 

Hello Timothy,

Thank you for testing doClone. The software was tested on a 32-bit environment and uses stdint.h standard types for preventing errors with different architectures. But is possible that some int variable remains in the code. To help me find the bug, I'll need to know what was the filesystem of the partition you were trying to create an image from, and what was the filesystem where you were storing the image file.

Thanks again, and if you detect any more bugs, don't hesitate to contact me.

Joan Lledó <jllledo>
Group administrator
Sat 21 Jun 2014 07:30:19 PM UTC, original submission:  

A MEPIS user expressed interest in DoClone, so I'm building debian wheezy compatible packages for the MEPIS Community Repositories.

When built on 64bit MEPIS 12 creating an image file of a partly used 10GB partition finished without error, writing 5.3 GB

When built on 32bit MEPIS 12 the same process fails with a "Can't write data" error when 2.1 GB has been written - specifically 2,147,483,647 bytes - the largest 32bit integer.

I'm guessing this code was never tested in a 32bit build environment.  Is it relatively simple to patch for 32bit?

Thanks!

Timothy E. Harris <timkb4cq@tampabay.rr.com>

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #31694:  doclone_0.7.0-1.zip added by None (2MiB - application/zip)
file #31680:  doclone_42594.patch added by jllledo (370B - text/x-patch - Adding macro _FILE_OFFSET_BITS=64 on building)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jllledo (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-08-02 jllledo StatusIn Progress Fixed
        Open/ClosedOpen Closed
    2014-07-10 None Attached File- Added doclone_0.7.0-1.zip, #31694
    2014-07-06 jllledo Attached File- Added doclone_42594.patch, #31680
    2014-06-24 jllledo StatusNone In Progress
        Assigned toNone jllledo

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code