[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fakeroot status

From: Roland McGrath
Subject: Re: fakeroot status
Date: Mon, 13 May 2002 17:51:41 -0400 (EDT)

> 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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]