Pseudofs and pfs_attr_t for non-process based files
Dag-Erling Smørgrav
des at des.no
Wed Jan 21 08:25:47 PST 2009
"Andrew Brampton" <brampton+freebsd-fs at gmail.com> writes:
> Basically pn_attr calls my pfs_attr_t function pointer, but only if
> the proc != null. Now in my case none of my files are created
> PFS_PROCDEP flag, which mean proc will always be null. So unless you
> are writing a pseudofs which is dependent on the process calling it,
> you cannot use a pfs_attr_t function pointer, meaning I can't change
> the attributes on my pseudo files.
>
> Now, to fix this problem I made a very simple patch which will call
> pn_attr regardless of proc being null or not. By doing this I had to
> also make a minor change in procfs.c as it assumes a valid proc is
> always passed in.
Sounds sensible, but your patches are mangled. Could you please
regenerate them using 'svn diff -x-p' on a non-Windows machine?
DES
--
Dag-Erling Smørgrav - des at des.no
More information about the freebsd-fs
mailing list