> I tried the cruel way and just #if 0'ed out the whoel S_ISCHR... block (but > not the symlink handling), and it worked fine. Which form should the hook > take? A function that netfs_S_dir_lookup calls and that we override?
It could just be a flag global variable. Conversely, struct node could just get a new member nn_translated to be checked instead of nn_stat.st_mode. Then the filesystem's netfs_validate_stat function is responsible for setting it. For maximum flexibility, this could be the st_mode bits to examine, i.e. S_IPTRANS or S_IFMT bits to indicate short-circuit. Then other existing netfs_validate_stat routines can do nothing but nn_translated = nn_stat.st_mode. _______________________________________________ Bug-hurd mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-hurd