FsQuota

Interface to file system quotas on UNIX platforms


Keywords
file-system, quota, quotactl, mtab, getmntent, capi, python-extension, python3, system-administration
License
GPL-2.0
Install
pip install FsQuota==0.0.2

Documentation

Python File-system Quota module

This repository contains the sources of the Python file-system quota module, which allows accessing file system quotas on UNIX platforms from Python scripts. This works both for locally mounted file systems and network file systems (via RPC, i.e. Remote Procedure Call) for all the operating systems listed below. The interface is designed to be independent of UNIX flavours as well as file system types.

The C implementation of this module is derived from the Quota module for Perl (also at CPAN). I started developing the Perl module 1995, while working as a UNIX system administrator at university and kept maintaining it even after no longer working in this capacity. Since its beginnings, the module was continuously extended by porting to more UNIX platforms and file-systems. Numerous people have contributed to this process; for a complete list of names please see the CHANGES document in the repository. All this effort is now available also to Python users.

Module information

The following operating systems and file systems are supported transparently through a common API.

Supported operating systems:

  • Linux - kernel 2.0.30 and later, including XFS
  • BSDi 2, FreeBSD 3.x - 4.9, OpenBSD & NetBSD (no RPC)
  • SunOS 4.1.3 (aka Solaris 1)
  • Solaris 2.4 - 2.10
  • HP-UX 9.0x & 10.10 & 10.20 & 11.00
  • IRIX 5.2 & 5.3 & 6.2 - 6.5
  • OSF/1 & Digital Unix 4
  • AIX 4.1, 4.2 and 5.3

Supported file systems:

  • Standard file systems of the platforms listed above
  • NFS (Network file system) on all of the above
  • AFS (Andrew File System) on many of the above (see INSTALL)
  • VxFS (Veritas File System) on Solaris 2

Documentation

For further information please refer to the following files: