<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>26632</bug_id>
          
          <creation_ts>2011-11-26 03:31:46 +0400</creation_ts>
          <short_desc>mmap runs out of memory on some files</short_desc>
          <delta_ts>2011-12-09 20:52:48 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>hardlink</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivan Zakharyaschev">imz</reporter>
          <assigned_to name="Alexey Gladkov">legion</assigned_to>
          <cc>boyarsh</cc>
    
    <cc>glebfm</cc>
    
    <cc>ldv</cc>
    
    <cc>legion</cc>
    
    <cc>mike</cc>
    
    <cc>placeholder</cc>
    
    <cc>vt</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>127199</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2011-11-26 03:31:46 +0400</bug_when>
    <thetext>hardlink-1.0-alt4

There were some files with films inside the directory I ran hardlink on, and it failed processing them saying that mmap ran out of memory.

And they were not merged with their duplicates (exact copies).

I believe this is a major bug, because these means that the really large files are not treated, and getting rid of their duplicates could save really a lot of space.

Workaround: 

* compare the files on which hardlink fails, and delete/hardlink them manually;
* fdupes-1.40-alt2 and duff-0.4-alt1 were able to process these files, and they did detect the duplicates, although they work much slower. (I liked the interface of fdupes more than that of duff, because it displays the progress.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127200</commentid>
    <comment_count>1</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2011-11-26 03:33:54 +0400</bug_when>
    <thetext>hardlink could fallback to more complex or slower comparison methods on large files, rather than just letting mmap to fail.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127202</commentid>
    <comment_count>2</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2011-11-26 04:57:46 +0400</bug_when>
    <thetext>hardlink-1.0-alt5 -&gt; sisyphus:

* Sat Nov 26 2011 Dmitry V. Levin &lt;ldv@altlinux&gt; 1.0-alt5
- Merged with hardlink-1.0-owl1 (closes: #26632).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127206</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2011-11-26 14:34:22 +0400</bug_when>
    <thetext>(In reply to comment #0)
&gt; Workaround: 
* use hardlinkpy?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127528</commentid>
    <comment_count>4</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2011-12-09 20:52:48 +0400</bug_when>
    <thetext>Thanks, now it works fine.

2mike: I searched for these tools with &quot;apt-cache search duplicate&quot;, so I didn&apos;t see it (hardlinkpy) as an alternative.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>