By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: Linux 6.17 Lands New file_getattr & file_setattr System Calls
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > Computing > Linux 6.17 Lands New file_getattr & file_setattr System Calls
Computing

Linux 6.17 Lands New file_getattr & file_setattr System Calls

News Room
Last updated: 2025/07/29 at 9:52 AM
News Room Published 29 July 2025
Share
SHARE

Along with the better handling of multi-device file-systems such as Btrfs’ native RAID capabilities and now allowing more efficient writing of zeroes to modern storage devices, the number of VFS pull requests for Linux 6.17 also added some other extra goodies.

Some new system calls to Linux 6.17 is introducing file_getattr() and file_setattr() as more extensible alternatives to FS_IOC_FSGETXATTR and FS_IOC_FSSETXATTR. The pull request explains of file_getattr and file_setattr system calls:

“This introduces the new file_getattr() and file_setattr() system calls after lengthy discussions. Both system calls serve as successors and extensible companions to the FS_IOC_FSGETXATTR and FS_IOC_FSSETXATTR system calls which have started to show their age in addition to being named in a way that makes it easy to conflate them with extended attribute related operations.

These syscalls allow userspace to set filesystem inode attributes on special files. One of the usage examples is the XFS quota projects.

XFS has project quotas which could be attached to a directory. All new inodes in these directories inherit project ID set on parent directory.

The project is created from userspace by opening and calling FS_IOC_FSSETXATTR on each inode. This is not possible for special files such as FIFO, SOCK, BLK etc. Therefore, some inodes are left with empty project ID. Those inodes then are not shown in the quota accounting but still exist in the directory. This is not critical but in the case when special files are created in the directory with already existing project quota, these new inodes inherit extended attributes. This creates a mix of special files with and without attributes. Moreover, special files with attributes don’t have a possibility to become clear or change the attributes. This, in turn, prevents userspace from re-creating quota project on these existing files.

In addition, these new system calls allow the implementation of additional attributes that we couldn’t or didn’t want to fit into the legacy ioctls anymore.”

Another notable VFS addition for this next Linux kernel version is the FS_IOC_GETLBMD_CAP ioctl. This new ioctl allows querying metadata and protection capabilities on block devices. The pull request there explains of FS_IOC_GETLBMD_CAP:

“This adds the new FS_IOC_GETLBMD_CAP ioctl() to query metadata and protection info (PI) capabilities. This ioctl returns information about the files integrity profile. This is useful for userspace applications to understand a files end-to-end data protection support and configure the I/O accordingly.

For now this interface is only supported by block devices. However the design and placement of this ioctl in generic FS ioctl space allows us to extend it to work over files as well. This maybe useful when filesystems start supporting PI-aware layouts.”

Meanwhile the VFS iomap updates add FUSE iomap support for buffered writes and dirty folio writeback. This work is for enabling up-to-date and dirty tracking in FUSE file-systems with large folios. Rather than needing an entire folio to be read into the page cache, now only relevant portions need to be read and only dirty portions for the writeback need to be written back rather than the entire folio.

The VFS pulls were merged on Monday to Git for Linux 6.17.

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article Apple, Please Don't Let AI Ruin the iPhone 17's Camera
Next Article Apple Open Sources Diffusion-Based Coding Model DiffuCoder
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

Seattle VCs: Startups must rethink defensibility in the fast-moving AI era
Computing
YouTube's Age-Estimation Tech Will Spot Kids Pretending to Be Adults. Here's How It Works
News
How Predictive Analysis Enhances IT Performance and Scalability
Gadget
Insta360 CEO reveals company rewards for employee love confessions on Chinese New Year’s Eve · TechNode
Computing

You Might also Like

Computing

Seattle VCs: Startups must rethink defensibility in the fast-moving AI era

5 Min Read
Computing

Insta360 CEO reveals company rewards for employee love confessions on Chinese New Year’s Eve · TechNode

1 Min Read
Computing

LinkedIn for business: How to grow your brand in 2025

31 Min Read

Zuckerberg wants to give everyone their own personal superintelligence through Meta’s new vision

4 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?