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

 
 

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

Submitted by:  Roger Wolff <rewolff>
Submitted on:  Thu 25 Jun 2009 03:25:08 PM UTC  
 
Category: findSeverity: 3 - Normal
Item Group: NoneStatus: Needs Copyright Assignment
Privacy: PublicAssigned to: None
Originator Name: Open/Closed: Open
Release: 4.2.28Fixed Release: None

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

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>
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>
Project 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>
Project 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>
Project 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 File(s):
   
   
Comment:
   

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

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 02 Dec 2009 10:36:36 PM UTCjayStatusNeed Info=>Needs Copyright Assignment
    Sun 05 Jul 2009 10:42:19 PM UTCjayStatusNone=>Need Info
    Thu 25 Jun 2009 03:25:08 PM UTCrewolffAttached File-=>Added space_patch.diff, #18317

    Back to the top


    Powered by Savane 3.1-cleanup