Hi!

----

While crawling through the AST sources I found the following line in
"libast/common/features/fs":
-- snip --
#define FS_default      "ufs"
-- snip --

This may be only partially correct (since Solaris may switch to "zfs" as
default OS in the near future (and there are other alternatives such as
"qfs", too)). default_fs(4) in Solaris says the following:
-- snip --
File Formats                                        default_fs(4)

NAME
  default_fs, fs - specify the default file  system  type  for
  local or remote file systems

DESCRIPTION
  When file system administration commands have both  specific
  and  generic  components  (for  example, fsck(1M)), the file
  system type must be  specified.  If  it  is  not  explicitly
  specified  using the -F FSType command line option, the gen-
  eric command looks in /etc/vfstab in order to determine  the
  file  system type, using the supplied raw or block device or
  mount point.  If the file system type can not be  determined
  by  searching  /etc/vfstab, the command will use the default
  file system type  specified  in  either  /etc/default/fs  or
  /etc/dfs/dfstypes,  depending  on whether the file system is
  local or remote.

  The  default  local  file  system  type  is   specified   in
  /etc/default/fs  by  a  line  of  the form LOCAL=fstype (for
  example, LOCAL=ufs). The default remote file system type  is
  determined by the first entry in the /etc/dfs/fstypes file.

  File system administration commands will  determine  whether
  the  file  system is local or remote by examining the speci-
  fied device name.  If the device   name  starts  with  ``/''
  (slash),  it  is  considered  to  be  local; otherwise it is
  remote.

  The default file system types can be changed by editing  the
  default files with a text editor.

FILES
  /etc/vfstab             list of default parameters for  each
                          file system

  /etc/default/fs         the default local file system type

  /etc/dfs/fstypes        the default remote file system type

SEE ALSO
  fsck(1M), fstypes(4), vfstab(4)
-- snip --

The only problem is that I can't find a public API to obtain these
values... does anyone have a clue how this could be done ?

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) roland.mainz at nrubsig.org
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 7950090
 (;O/ \/ \O;)

Reply via email to