Skip to main content

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

http://i.imgur.com/EtLap2T.png

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

Download files

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

Source Distribution

xfs-0.4.tar.gz (25.2 kB view details)

Uploaded Source

File details

Details for the file xfs-0.4.tar.gz.

File metadata

  • Download URL: xfs-0.4.tar.gz
  • Upload date:
  • Size: 25.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for xfs-0.4.tar.gz
Algorithm Hash digest
SHA256 e6b4b2a6d5f540b225ce766fb90a519e8c4217f344da53915dca77611ee5d457
MD5 0259da0979b831104217070fe7cde4ad
BLAKE2b-256 a80d79547fd4af1ed249277d9a1c93d446aa58dd302f772cb8b017541b8f16d3

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.4 This release

1 file

0.3

1 file

0.2

1 file

0.1

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page