getfilesystem
Package: WA2L/edrc 1.5.57
Section: Library Commands (3)
Updated: 17 March 2007
Index
Return to Main Contents
NAME
getfilesystem - print the filesystem of the current working directory
SYNOPSIS
edrc/lib/getfilesystem
AVAILABILITY
WA2L/edrc
DESCRIPTION
With
getfilesystem
the filesystem (special file) is printed where the current working
directory is located on.
This output is basically identical to:
-
df -k . | awk 'END{print $1}' # Solaris, Linux
bdf . | awk 'END{print $1}' # HP-UX
xbdf . | awk 'END{print $1}' # all
but is much faster especially if there are large file systems on HP-UX.
getfilesystem
is used internally by
pkg_hostname
where fast filesystem resolving is important.
OPTIONS
-
ENVIRONMENT
-
EXIT STATUS
- 0
-
filesystem could be resolved
- 1
-
error while resolving the filesystem
FILES
- /etc/mnttab
-
on HPUX and Solaris.
- /etc/mtab
-
on Linux.
EXAMPLES
-
SEE ALSO
edrcintro(1),
getmountpoint(3),
pkg_hostname(3),
bdf(1),
df(1),
xbdf(1)
NOTES
The program is based on the source code in
compat.c
which is part of a
df
implementation written by Jeff Forys <jeffware@marjum.com>.
BUGS
-
AUTHOR
getfilesystem was developed by Christian Walther. Send suggestions
and bug reports to wa2l@users.sourceforge.net .
COPYRIGHT
Copyright © 2008
Christian Walther
This is free software; see
edrc/doc/COPYING
for copying conditions. There is ABSOLUTELY NO WARRANTY; not
even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
This document was created by man2html
using the manual pages.
Time: 16:53:05 GMT, August 28, 2024