For a "normal" directory, that is a "filecontrol directory", the server doesn't know who has accessed a directory. SFS sees the files in such a directory as unique objects. For example a user can have a permission to read and/or write a file but not other files in that directory. With a CREATE ALIAS he could for example logically include that single file in a directory of his own. So what should the server tell you then: is this end-user an accessor of your directory? Or you the end-user can directly access the file without accessing the directory first. Example: PIPE < MYSFS FILE fpool:filespace.subdir ! .... To be able to ACCESS a directory, one needs to have at least READ permission to the directory object, which does not imply you get permission to a single file within it.
Directory control directories (DIRC for short) are a bit different, they are a bit like a minidisk: you get permission to the whole directory and its files at once (a DIRC can be placed in a dataspace to improve speed and memory sharing). Then the SFS server knows who access this directory. It even must know, because the SFS server will keep the image of all files in the subdir as it was at the time of the ACCESS. (for files in a filecontrol directory, SFS keep the image of the file as long as you have it open). Commands to visit: CREATE DIR dirid (FILECONTROL | DIRCONTROL DIRATTR dirid FILECONTROL | DIRCONTROL GRANT AUTH dirid (READ | WRITE (for a FILECONTROL dir) GRANT AUTH dirid (DIRREAD | DIRWRITE (for a DIRC) GRANT AUTH fn ft dirid (READ|WRITE (permits a file in FILECONTROL) 2009/3/25 Alan Ackerman <[email protected]>: > On Tue, 24 Mar 2009 13:24:15 -0400, Bruce Hayden <[email protected]> wrote: > >>What did you expect? The help for QUERY ACCESSORS says: >>"Use the QUERY ACCESSORS command to display information about current >>accessors of directory control directories." >>Since you don't have any directory control directories (meaning all of >>the directories in VMSYS are file control directories, which is the >>default), you get that message. > > Can someone explain this restriction to me. If I have accessed a file mode > directory, doesn't the SFS > server know that? > > It's annoying to have to change directories to dirmode just to find out who > is using them -- and risk > breaking someone's application. > > Alan Ackerman > Alan (dot) Ackerman (at) Bank of America (dot) com > -- Kris Buelens, IBM Belgium, VM customer support
