search for: mntexcl

Displaying 1 result from an estimated 1 matches for "mntexcl".

2004 Jun 10
1
[Bug 1455] Make -x skip a "bind" mount point to the same filesystem
...nt(), or whatever is available). In the meantime I've changed this bug to an enhancement request. Your best bet for a quick fix is to use some explicit excludes. One way is to use a perl script to automatically create an exclude list from the /proc/mounts file, like this one (name this "mntexcl"): #!/usr/bin/perl -w use strict; my $start_dir = shift; $start_dir =~ s#^([^/])#$ENV{'PWD'}/$1#; my($prefix, $suffix) = $start_dir =~ m#^(.*/)([^/]*)$#; open(IN, '/proc/mounts') or die $!; while (<IN>) { $_ = (split)[1]; next unless s#^\Q$prefix\E##o &&...