It looks like interesting. But your patch has a issues.
+ /* fprintf(stderr,"found upper vnode\n"); */
+ res = ufs_filestat(&upper, fsp);
and
+ /* fprintf(stderr,"found lower vnode\n"); */
+ res = ufs_filestat(&lower, fsp);
depend on UFS. It must treat both UFS and no UFS fs.
And I am not a maintainer of fstat(1). Please contact to
maintainer. Perhaps Ed Maste(emaste) is maintainer I suppose
The isunionfs.c looks like interesting, too :) But your
program is not complete. 'below' option gives it non-correct
work. Addition it does not consider unionfs and nullfs
combibation or something like that. To check upper/lower
completely, you need the same way of your fstat(1) patch.
But your idea looks interesting :) Keep your concern of
unionfs. To get keep concern is very good for us!
--
Daichi GOTO, http://people.freebsd.org/~daichi
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"