Enhanced File Stats Being Worked On For The Linux Kernel

Written by Michael Larabel in Linux Storage on 19 November 2016 at 02:26 PM EST. 9 Comments
LINUX STORAGE
Red Hat has been working on a new statx system call for the Linux kernel to provide "enhanced" file information.

This new statx() system call would be able to return the file's creation time, data version number, and other new attributes not currently provided. These new attributes wouldn't work for all file-systems, but would work for a subset of them such as CIFS, NFS, and others that track such information.

There's also support for a lightweight stat for providing basic information without needing to sync to the server for network file-systems while a heavyweight stat would force such a sync.

This new system call is also designed to better protect against the Year 2038 problem, better BSD stat compatibility, extra coherency data that could be useful for backups, and more.

This is just a quick summary of the proposed statx system call for the Linux kernel. Those interested in enhanced file stats can see this patch series and particularly this patch that provides an overview of the new capabilities as well as detailing what file-systems can provide the particular stats.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week