[comp.sys.sgi] Updating directory views

meuer@umn-cs.CS.UMN.EDU (Mark V. Meuer) (11/18/89)

How can I get a directory view that has been opened in the WorkSpace
to re-sync itself with its directory?

What happens is that I'll open a view, call up the editor from that
view and create a new file from within the editor and write it to
disk.  Unfortunately, the file does not show up as an icon in the view
unless I kill the view and re-open a new one for the directory.

We are running 3.2 IRIX.  It think that the 3.2 beta version we had
would automatically sync the views.

Thanks for any help!

-mark

-- 
Mark Meuer                         |       1200 Washington Ave. So.
Geometry Supercomputer Project	   |	   Minneapolis, MN  55415  
meuer@geom.umn.edu		   |	   (612) 624-1867          

betsy@vesuvius.esd.sgi.com (Betsy Zeller) (11/21/89)

There is something very wrong with your workspace, if your directory views
are not staying *perfectly* up to date with your file system. Can you
please check a few things for me.
        1. Make sure that the new file is not appearing out of sight 
        when you create it -- new files appear at the end of the directory
        view.
        
        2. do a ps -ef | grep fam, and see if anything comes up

        3. check the permissions on the directory that is giving you
        problems, and pass that information on to me

        4. Open a directory view on another directory, and see if you
        have the same kind of problem there.

        5. (Not that this should make any difference ) Is this directory
        NFS mounted?

Any information that you can send me will be appreciated. Please keep me
posted as to what you find out. The WorkSpace is supposed to accurately
track the filesystem, and up till now ( as far as I know ), it has been
doing so.


Betsy Zeller
betsy@sgi.com

robert@shangri-la.gatech.edu (Robert Viduya) (11/22/89)

> 
> There is something very wrong with your workspace, if your directory views
> are not staying *perfectly* up to date with your file system. Can you
> please check a few things for me.
>         1. Make sure that the new file is not appearing out of sight 
>         when you create it -- new files appear at the end of the directory
>         view.
>         
>         2. do a ps -ef | grep fam, and see if anything comes up
> 
>         3. check the permissions on the directory that is giving you
>         problems, and pass that information on to me
> 
>         4. Open a directory view on another directory, and see if you
>         have the same kind of problem there.
> 
>         5. (Not that this should make any difference ) Is this directory
>         NFS mounted?
> 

Actually, NFS mounts do make a difference.  The fam daemon runs as root and
if you've got a NFS directory open in the workspace that has modes of something
like 0700, and the NFS server has the filesystem exported WITHOUT root access,
root will NOT be able to see into that directory.  The effect that we've noticed
here when that situation occurs is that on the initial open of the directory
from the workspace all the files in that directory appear for a split second
and then disappear.

I reported this problem to the hot-line (problem number B3520) and was told
that, yes, it was a problem and that, no, SGI wouldn't fix it.  I've had to
resort to telling my users that if they want to be able to access their files
from the workspace, they need to make them publicly available for everyone else
to access.

			robert


--
Robert Viduya					   robert@shangri-la.gatech.edu
Office of Computing Services
Georgia Institute of Technology					 (404) 894-6296
Atlanta, Georgia	30332-0275

betsy@vesuvius.esd.sgi.com (Betsy Zeller) (11/23/89)

>Actually, NFS mounts do make a difference.  The fam daemon runs as root and
>if you've got a NFS directory open in the workspace that has modes of something
>like 0700, and the NFS server has the filesystem exported WITHOUT root access,
>root will NOT be able to see into that directory.  The effect that we've noticed
>here when that situation occurs is that on the initial open of the directory
>from the workspace all the files in that directory appear for a split second
>and then disappear.
>
>I reported this problem to the hot-line (problem number B3520) and was told
>that, yes, it was a problem and that, no, SGI wouldn't fix it.  I've had to
>resort to telling my users that if they want to be able to access their files
>from the workspace, they need to make them publicly available for everyone else
>to access.
>


I think that there has been a slight problem in communication here. It is
clear that when you open a directory view that you have permission to 
access, you should see the files in it without their icons disappearing.
This problem will be addressed in a future release. One problem that is
currently impeding me from addressing it is that I cannot reproduce it. All
combinations that I have tried of exporting/mounting directories over
nfs have worked fine. It would be a great help if you could email me 
	i) the contents of /etc/exports referring to the troublesome directories
	ii) the appropriate lines from /etc/fstab
	iii) has anyone had this problem when the NFS mounts were only
	between SGI machines
	The fam daemon will continue to run as root, because more than one
WorkSpace can be run at a time, and the fam daemon must serve them all. There
are, however, other ways around the problem and we will continue to
investigate them.

Betsy Zeller
betsy@sgi.com