On Jun 15, 2009, at 2:19 PM, Nicolas Williams wrote: > On Mon, Jun 15, 2009 at 11:06:27AM -0700, James Walker wrote: >> Disktype[1] is a program to detect the content format of a disk >> or disk >> image. Initially the project team will be porting disktype "as >> is", since >> disktype already provides good analysis of file systems, disk >> labels and >> boot loaders, etc... However, the project team also plans to work >> with the >> upstream communinty to extent disktype to support zfs and other >> Solaris and >> OpenSolaris specific features. > >> [1] http://disktype.sourceforge.net/ > > Sounds like this and fstyp(1M) could use some integration. > Specifically, I think making disktype use libfstyp(3LIB) on Solaris as > an additional source of information would be useful. > > I think the reverse (making fstyp/libfstyp use disktype) is not > obviously useful, since fstyp/libfstyp is more general and since it's > probably OK for fstyp/libfstyp to know only about filesystems that are > supported on Solaris. But I may be wrong about this, and it may be > useful for libfstyp to learn about many more filesystems.
Sorry to swing in on the tail-end of the deliberation, but how about also using libdiskmgt as well? It's not Public in any way, though. It's what format(1M) uses to investigate disks, partitions, and slices. /dale