Re: "find" problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07Jan2012 08:28, I wrote:
| On 06Jan2012 12:43, Dean S. Messing <deanm@xxxxxxxxxxxxx> wrote:
| | On my F13 machine, 
| | 
| |       find / \! -fstype ext4 -prune -o -print
| | 
| | prints every file that is in an ext4 filesystem mounted on /, and prunes
| | those in any other type of fs.
| | 
| | On my F15 the same command prints nothing.  Why might that be?
| 
| Is / an ext4 fs? If not, the find will terminate immediately.
| I would run the find with a -print before the -prune and withjout th
| trailing print - see what the find is pruning.

It is also worth noting that your find may not find nested ext4 mounts.
Supposing an ext4 mount point is mounted inside an ext3 mount? Your
prune will prevent find from descending deep enough to find it.

Alterative approach:

  mount \
  | awk '$5 == "ext3" {print $3}' \
  | while read -r fstop
    do find "$fstop" -xdev -print
    done

Change ext3 to ext4 (I was testing on an ext3 only system).

Cheers,
-- 
Cameron Simpson <cs@xxxxxxxxxx> DoD#743
http://www.cskk.ezoshosting.com/cs/

It's our metallo-organic approach versus the incumbent technologies.
- overhead by WIRED at the Intelligent Printing conference Oct2006
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux