This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

XFS filesystem API

Project Description

This will be a set of modules for working with XFS filesystems. It will bind xfslibs APIs in a pythonic manner.

Currently, the only API implemented is bulkstat.

bulkstat(mountpoint)

Returns an iterator of stat-like objects for inodes in the filesystem. The stat-like objects have the same properties as stat results: st_size, st_ino, st_mode, st_dev, st_nlink, st_uid, st_gid, st_atime, st_ctime, and st_mtime

They also contain:

st_fatime, st_fctime, st_fmtime: same as st_atime, st_ctime and st_mtime, except they return a float including subseconds, similar to time.time()

st_xflags: xfs extended flags

has_xattrs(): returns true if the file contains extended attributes.

isreg(), isdir(), isfifo(), islink(): convenience methods for identifying file type by mode.

open(): contextmanager that returns a read-only file descriptor for the file

Defined constants:

XFS_XFLAG_HASATTR, XFS_XFLAG_REALTIME, XFS_XFLAG_PREALLOC, XFS_XFLAG_IMMUTABLE, XFS_XFLAG_APPEND, XFS_XFLAG_SYNC, XFS_XFLAG_NOATIME, XFS_XFLAG_NODUMP, XFS_XFLAG_RTINHERIT, XFS_XFLAG_PROJINHERIT, XFS_XFLAG_NOSYMLINKS, XFS_XFLAG_EXTSIZE, XFS_XFLAG_EXTSZINHERIT, XFS_XFLAG_NODEFRAG, XFS_XFLAG_FILESTREAM, XFS_XFLAG_HASATTR
Release History

Release History

This version
History Node

0.3

History Node

0.2

History Node

0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
xfs-0.3.tar.gz (24.6 kB) Copy SHA256 Checksum SHA256 Source Apr 18, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting