bugfindutils - Bugs: bug #32177, -size -1M work wrong

 
 

bug #32177: -size -1M work wrong

Submitted by:  None
Submitted on:  Wed 19 Jan 2011 12:05:52 PM UTC  
 
Category: findSeverity: 3 - Normal
Item Group: NoneStatus: Duplicate
Privacy: PublicAssigned to: None
Originator Name: dikinovaOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 4.4.0
Fixed Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Wed 19 Jan 2011 12:32:57 PM UTC, comment #1:

Duplicate of bug 12162.

In short, -size -1M finds all files whose rounded size is less than 1M, but using a block size of 1M (so a file of 1 byte, rounded up to block size, occupies a 1M block and thus is not less than 1M).

Suggestions for a new syntax have not yet produced any code; ideas have included adding -filesize, or supporting -size --1M to mean files that are less than 1M but without rounding block size.

Eric Blake <ericb>
Project Administrator
Wed 19 Jan 2011 12:05:52 PM UTC, original submission:

deb5:/usr# find . -type f -size -1000k | wc -l
79526
deb5:/usr# find . -type f -size -1M | wc -l
68

The second command only find files which size is zero.

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by ericb (Posted a comment)
  • -unavailable- added by None (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 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 19 Jan 2011 12:32:57 PM UTCericbStatusNone=>Duplicate
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1