cl-mount-info

2023-10-21

Get information about mounted filesystems on GNU/linux.

Upstream URL

notabug.org/cage/cl-mount-info

Author

cage

Maintainer

cage

License

LLGPLv3 or later
README

1moved to https://codeberg.org/cage/cl-mount-info/

2Introduction

cl-mount-info is a (thin) wrapper around getmntent(3) and related C functions.

This library, on GNU/Linux allow to get information about the mounted filesystem on your computer. See getmntent(3) for details.

3Install

Just clone the repo where can be reached by ASDF.

4The wrapper

The file src/cffi.lisp Contains the low levels wrapper, whilst the file api.lisp allow the filesystem information query with a simpler interface.

4.1The simple API


  (mountpoint->device "/") ; -> the device where "/" is mounted

  (mountpoint->fstype "/") ; the filesystem of the device where "/" is mounted

  (mountpoint->mnt-options "/") ; -> mount option as list

The above functions use an optional arguments to specify the file where mounted filesystem information are stored: default is /etc/mtab.

4.2The low level API

See getmntent(3)

5Issues

Note that the whole library is in an alpha stage, testing is still in progress, please see section below

This library works on GNU/Linux only.

6BUGS

Please file bug report on the issue tracker

7License

© 2020 cage, puercopopThis library is released under Lisp Lesser General Public license (seeCOPYING.LESSER file)

Examples are released under GPL version 3 or later

8NO WARRANTY

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

Dependencies (3)

  • alexandria
  • cffi
  • cl-ppcre

Dependents (0)

    • GitHub
    • Quicklisp