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

 
 

bug #32177: -size -1M work wrong

Submitter:  None
Submitted:  Wed 19 Jan 2011 12:05:52 PM UTC
   
 
Category:  find Severity:  3 - Normal
Item Group:  None Status:  Duplicate
Privacy:  Public Assigned to:  None
Originator Name:  dikinova Originator Email:  -email is unavailable-
Open/Closed:  Closed Release:  4.4.0
Fixed Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group 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 Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Date Changed by Updated Field Previous Value => Replaced by
    2011-01-19 ericb StatusNone Duplicate
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code