Archives


- Beowulf
- Beowulf Announce
- Scyld-users
- Beowulf on Debian

[BProc] Re: bproc+autofs: oz_pgrp problem

Many of your questions may have already been answered in earlier discussions or in the FAQ. The search results page will indicate current discussions as well as past list serves, articles, and papers.

Search

Erik Arjan Hendriks erik at hendriks.cx
Thu May 9 10:22:56 PDT 2002


On Thu, May 09, 2002 at 04:08:16PM +0200, hanzl at noel.feld.cvut.cz wrote:
> Starring at bproc sources, it seemes to me that autofs might be fixed
> by changing "current->pgrp" to "current->bproc.masq->pgrp" in
> fs/autofs/autofs_i.h:
> 
>     /* autofs_oz_mode(): do we see the man behind the curtain?  (The
>        processes which do manipulations for us in user space sees the raw
>        filesystem without "magic".) */
>     
>     static inline int autofs_oz_mode(struct autofs_sb_info *sbi) {
>       return sbi->catatonic || current->pgrp == sbi->oz_pgrp;
>     }
> 
> Please comment - does it make sense? Is current->bproc.masq->pgrp the
> lie which is returned to node process calling getpgrp() ?

That should work.  bproc.masq->pgrp is the value returned by getpgrp.
Make sure you check to make sure that current->bproc.masq is not null
though.  It's null for all non-remotely managed processes.

- Erik



More information about the Beowulf mailing list