Add a New Comment (Rich Markup)
Eric, would you like to work on this?
The announcement email for the recent 4.7.0 release states:
For consistency with planned changes to POSIX, the semantics of 'find -mount' may be different from that of 'find -xdev' in future releases.
Today during the Austin Group meeting (the folks responsible for POSIX), it was decided that -mount and -xdev should have a subtle difference in behavior, in order to reconcile some differences between implementations and against some other file-traversal programs like pax (the POSIX replacement to tar). The difference stems on the question of whether, when requesting that a cross-device file system entry (whether a mount point, or whether a symlink that crosses mount points when -L follows symlinks), should be visited or omitted during the traversal. Both styles have their merits. Quoting from the discussion results: http://austingroupbugs.net/view.php?id=1133 " When restricting the search to files on one file system, it can sometimes be desirable for the crossing points themselves to be acted on and sometimes for them not to be acted on. (Crossing points are mount points and, if the -L option is specified, symbolic links to directories on other file systems.) The -xdev primary acts on them and the -mount primary does not. However, -mount also does not act on symbolic links to non-directory files on other file systems (if -L is specified). If there is a need for an application to exclude crossing points but include symbolic links to non-directory files on other file systems, this can be achieved by using two find commands as follows: find -L dir -mount -type d -print find -L dir -xdev ! -type d -print (in a subshell whose output is piped to sort, if the order matters). If both -mount and -xdev are specified, find obeys both primaries but the end result is the same as if -xdev were not specified. " We'll need to patch GNU findutils to match, in order to make -mount skip crossing points (while keeping -xdev with its behavior of visiting crossing points).
(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
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.
Please enter the title of George Orwell's famous dystopian book (it's a date):
Copyright © 2023 Free Software Foundation, Inc. Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved. The Levitating, Meditating, Flute-playing Gnu logo is a GNU GPL'ed image provided by the Nevrax Design Team. Source Code
Powered by Savane 3.11