netfs_resize_file(9)
π NAME π
netfs_resize_file β note that a file got resized β¨
Hiii bestie! You're on the netfs_resize_file(9) page from the Kernel API Manual, and honestly? It's giving βtiny function, important jobβ π. The whole point: let the netfs lib know a file got resized.
πΈ SYNOPSIS πΈ
void netfs_resize_file (struct netfs_inode *ictx , unsigned long long
new_i_size , bool changed_on_server );
π¦ ARGUMENTS π¦
ictxβ the netfs inode being resized, aka the main character here πnew_i_sizeβ the new file size, literally the number bestie πchanged_on_serverβ the change was applied to the server β
π§ DESCRIPTION π§
So the tea β: you call this to inform the netfs lib that a file got resized so that it can adjust its state. Thatβs it, thatβs the whole job β but donβt sleep on it, because state adjustments matter, iykyk π.
π SEE ALSO π
All the linked besties π«Ά:
- Kernel file
./include/linux/netfs.h folio_start_private_2(9)netfs_inode(9)netfs_read_remote_i_size(9)netfs_read_zero_point(9)netfs_read_sizes(9)netfs_inode_init(9)netfs_i_cookie(9)netfs_wait_for_outstanding_io(9)
Source/version vibes: ./include/linux Β· dated: October 2026 Β· page: netfs_resize_file(9). Byeee, go resize responsibly π
β¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms