On this page
  1. posix.fstatvfs
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

posix.fstatvfs

Prev: posix.fstat | Up: posix | Next: posix.fsync
Rel: posix.abort, posix.access, posix.chdir, posix.chflags
Ref: docs.python.org — posix.fstatvfs
Tags: #public #python3 #stdlib #posix


Import

import posix
from posix import fstatvfs

Signature & Overview

posix.fstatvfs(fd, /)

Perform an fstatvfs system call on the given fd.

Usage

import os, tempfile

with tempfile.TemporaryFile() as f:
    assert os.fstatvfs(f.fileno()).f_frsize > 0

Gotchas

REPL Inspect

from posix import fstatvfs
help(fstatvfs)

Linked from

Related notes