Bug 466462
Summary: | RFE: Searching for files smaller than 1M or 1k does not work. | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Petr Šplíchal <psplicha> |
Component: | findutils | Assignee: | Vitezslav Crhonek <vcrhonek> |
Status: | CLOSED UPSTREAM | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | rawhide | CC: | ohudlick, vcrhonek |
Target Milestone: | --- | Keywords: | FutureFeature, Reopened |
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Enhancement | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2008-11-25 13:27:49 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Petr Šplíchal
2008-10-10 11:50:00 UTC
Wrong usage. Command should be "find -size 1k" (or "1M"). # dd if=/dev/zero of=0 bs=1 count=0 # dd if=/dev/zero of=1 bs=1 count=1 # find -size -1k ./0 Read man page carefully and see bz246122 (same problem reported in the past) for more explanation. Ok, I see the "logic" of units, but this is not very intuitive behaviour, which is confirmed by the fact that more and more people run into this issue: http://lists.gnu.org/archive/html/bug-findutils/2005-02/msg00014.html http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=489905 http://savannah.gnu.org/bugs/?12162 I think this should be fixed by providing an alternative modifier for size parameter (not to break backward compatibility) as has already been suggested in the gnu bug report: http://savannah.gnu.org/bugs/?12162#comment2 The best solution (although not ideal) could probably be to use ++ and -- find -size --1M find -size ++1k This should be well documented in find's man page which is now quite brief about the size parameter comparing to following find documentation: http://www.gnu.org/software/findutils/manual/html_mono/find.html.gz#Size Closing UPSTREAM (http://savannah.gnu.org/bugs/?12162), there's no reason to duplicate it here. |