Quantcast
Channel: Number of free inodes on a partition containing a directory - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Number of free inodes on a partition containing a directory

$
0
0

I have a Python script running under Linux that generates huge numbers of tiny files into a given directory. However, many Linux filesystems like ext4 have a fixed number of inodes set at creation time, so I want to make sure it's possible to save that many files into that directory before starting. From the command line, you can see this number using df -i /some/directory.

How do you find the number of free inodes on the filesystem that directory lives on, in Python?


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>