bugfindutils - Bugs: bug #26885, -size checks filesize, not...

 
 

bug #26885: -size checks filesize, not blocks-used-in-filesystem.

Submitter:  Roger Wolff <rewolff>
Submitted:  Thu 25 Jun 2009 03:25:08 PM UTC
   
 
Category:  find Severity:  3 - Normal
Item Group:  None Status:  Needs Copyright Assignment
Privacy:  Public Assigned to:  jay
Originator Name:  Open/Closed:  Closed
Release:  4.2.28 Fixed Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Sun 23 Sep 2018 01:15:29 PM UTC, comment #9: 

Closing due to lack of response.

James Youngman <jay>
Group administrator
Sun 10 May 2015 09:05:30 PM UTC, comment #8: 

Where are we up to on the copyright assignment, now?

James Youngman <jay>
Group administrator
Mon 30 Sep 2013 06:16:28 AM UTC, comment #7: 

BTW: In the meantime, du(1) has learned the --threshold option
which can be used to filter by file size or by the apparent file
size (available in coreutils >= v8.21).
Git commit:
  http://git.sv.gnu.org/cgit/coreutils.git/commit/?id=f8afbb42
Texinfo page:
  http://www.gnu.org/software/coreutils/manual/html_node/du-invocation.html#du-invocation

This can also be used to find "big" directories.
Yet, a new option in find may be good in combination with
other query options.

Bernhard Voelker <berny>
Group administrator
Mon 30 Sep 2013 05:42:23 AM UTC, comment #6: 

I'm 100% busy today, I'll try to act tomorrow, see if I can find the documents.

Anonymous
Sun 29 Sep 2013 07:59:54 PM UTC, comment #5: 

Where are we up to on the copyright assignment?

James Youngman <jay>
Group administrator
Thu 12 Jan 2012 03:10:50 PM UTC, comment #4: 

Alas, no - this web page is not the right place for copyright disclaimers.  But I will send you directions via email to the correct web page (assuming you reside in the US) or directions for starting a snail mail exchange (if you reside elsewhere).

Eric Blake <ericb>
Group administrator
Thu 12 Jan 2012 12:33:02 PM UTC, comment #3: 

Dear FSF,

I do not understand  your request to assign copyright to you. If I do so, I lose the right to sue any possible violations of the GPL.

If I don't you'll still be able to start the courtcase because you own some of the copyrights.

Anyway, this is not the place to fight over such issues.

------------------------------------------------------------
I hereby assign the copyrights of the submitted code over to the FSF.

Signed,
  Roger Wolff.
------------------------------------------------------------

Is it OK like this?


Roger Wolff <rewolff>
Tue 07 Jul 2009 03:00:05 PM UTC, comment #2: 

Er... any chance we could have both, please? I can see good uses for both "-space <size>" and "-sparse" predicates.

Chris(topher) Chittleborough <cchittleborough>
Sun 05 Jul 2009 10:40:05 PM UTC, comment #1: 

I think it is likely to be more useful to be able to select files on their sparseness (rather than the total blocks occupied).  However, I'm inclined to ask the list members what they'd find useful.  If there is a consensus option, we can go with that.  

Any thoughts, folks?

James Youngman <jay>
Group administrator
Thu 25 Jun 2009 03:25:08 PM UTC, original submission:  


It is useful to search for files that take a lot of disk space. I happen to have a lot of files that are 1Gbyte large, but occupy only their inode: they are completely zero.

I have a cronjob that tries to compress such files. however, compressing those files that only contain zeroes takes a lot of CPU time, and only increases the disk usage.

The attached patch implements the -space predicate that checks (like -size) the size-on-disk instead of the file length.

I'm a technical guy, so I built the patch, but haven't update the docs. Just drop me a note if you are going to incorporate this and want me to write the documentation.

The patch shortens the sourcecode by about 30 lines of code.

Roger Wolff <rewolff>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #18317:  space_patch.diff added by rewolff (7KiB - text/plain)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by berny (Posted a comment)
  • -email is unavailable- added by ericb (Posted a comment)
  • -email is unavailable- added by cchittleborough (Posted a comment)
  • -email is unavailable- added by jay (Posted a comment)
  • -email is unavailable- added by rewolff (Submitted the item)
  •  

    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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-09-23 jay Assigned toNone jay
        Open/ClosedOpen Closed
    2009-12-02 jay StatusNeed Info Needs Copyright Assignment
    2009-07-05 jay StatusNone Need Info
    2009-06-25 rewolff Attached File- Added space_patch.diff, #18317

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code