I'm trying to automount our home dirs as
/homes/$USERNAME
which should bind mount to
:/home/$SERVER/$HOMENAME/$USERNAME
which should bind mount to
:/home/$SERVER/$VOLUME/$PATH/$USERNAME
which (phew!) will be an NFS mount to
$SERVER:/$VOLUME/$PATH/$USERNAME
The idea is that:
(1) `/bin/pwd` = "/homes/$USERNAME"
(2) when you run "quota" it'll only report for $SERVER:/$VOLUME
Now.. this all works perfectly if before looking at /homes/$USERNAME you
look at firstly /home/$SERVER/$VOLUME/$PATH/$USERNAME and then secondly
/home/$SERVER/$HOMENAME/$USERNAME, because the bind mounts have something
to bind to. Of course you shouldn't need to know the middle bits, but you
could look them up. Currently the binds mount fail and automount drops in
symlinks; this satisfies (2) above, but unfortunately not (1).
I hope someone can make sense of this. Is it different in autofs4?
Matt
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/