Bug 12764 - gmc/mc not designed with NFS in mind
Summary: gmc/mc not designed with NFS in mind
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: gmc
Version: 6.2
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jonathan Blandford
QA Contact:
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-06-20 17:02 UTC by Ben Poliakoff
Modified: 2013-04-02 04:13 UTC (History)
1 user (show)

(edit)
Clone Of:
(edit)
Last Closed: 2000-07-14 05:53:33 UTC


Attachments (Terms of Use)

Description Ben Poliakoff 2000-06-20 17:02:16 UTC
There doesn't seem to be a way to keep gmc/mc from "stat"ing an NFS mounted
/home directory.  This slows down operations tremendously in an
organization with about 2500 user directories in /home.  

Every time I invoke the file browser, gmc scans the parent directory of my
home directory (i.e. /home). Once the initial scan is done gmc calms down a
bit, but then if I use the file browser to view the contents of a
subdirectory, then gmc "stat"s the whole /home tree all over again.  

Here's an example from running strace on the pid of gmc:

stat("/home/robinsoc", {st_mode=S_IFDIR|0755, st_size=512, ...}) = 0
stat("/home/robinsok", {st_mode=S_IFDIR|0755, st_size=512, ...}) = 0
stat("/home/robinsom", {st_mode=S_IFDIR|0755, st_size=512, ...}) = 0
stat("/home/robinsor", {st_mode=S_IFDIR|0755, st_size=512, ...}) = 0
stat("/home/robitaij", {st_mode=S_IFDIR|0755, st_size=512, ...}) = 0
stat("/home/robsonj", {st_mode=S_IFDIR|0755, st_size=512, ...}) = 0
stat("/home/rodeh", {st_mode=S_IFDIR|0755, st_size=512, ...}) = 0
stat("/home/roehld", {st_mode=S_IFDIR|0755, st_size=512, ...}) = 0
stat("/home/roggec", {st_mode=S_IFDIR|0755, st_size=512, ...}) = 0
stat("/home/roles", {st_mode=S_IFDIR|0755, st_size=512, ...}) = 0
stat("/home/rolfed", {st_mode=S_IFDIR|0755, st_size=512, ...}) = 0

These stat() occur everytime I open a directory (within my home directory),
for example, when I open ~/bin.

I've seen the find_ignore_dirs variable in the mc man page, but that seems
to only impact "find" operations.  Perhaps I'm missing something?

I'm running the following:
mc-4.5.42-10
gmc-4.5.42-10

The system is a vanilla rh 6.2 install.

Comment 1 Seth Vidal 2000-07-14 05:53:33 UTC
fix for this one:
I had the same problem:
look in /etc/mc.global 
edit the [Special dirs] section and append  your home dir to the list of dirs
there
mc does a tree of anything which is NOT in this list.
yes its dumb.
no its not redhat's fault.

but this fixes it.
and it makes gmc actually FAST



Comment 2 Jonathan Blandford 2000-07-17 18:40:56 UTC
This is indeed the correct fix.  GMC has a limitted lifespan, anyway, so
hopefully it will be better handled in nautilus.



Note You need to log in before you can comment on or make changes to this bug.