Re: [PATCH] find -samedev NAME: true for files on the same device as NAME

2018-11-01 Thread Eric Blake
On 11/1/18 10:56 AM, Kamil Dudka wrote: There is no easy way to exclude mount points from the output of `find`. The options -xdev or -mount prevent `find` from traversing over the mount points but do not exclude the mount points themselves. It could be scripted by AWK on Linux as in the

[PATCH] find -samedev NAME: true for files on the same device as NAME

2018-11-01 Thread Kamil Dudka
There is no easy way to exclude mount points from the output of `find`. The options -xdev or -mount prevent `find` from traversing over the mount points but do not exclude the mount points themselves. It could be scripted by AWK on Linux as in the following example: $ find / -xdev -maxdepth 1