ksmbd_vfs_truncate(9)
β¨ ksmbd_vfs_truncate(9) β¨
okay bestie, welcome to the Kernel API Manual π
this one's a little function called ksmbd_vfs_truncate and honestly? she's giving tiny-but-mighty. no cap.
πΈ NAME πΈ
ksmbd_vfs_truncate β literally the vfs helper for smb file truncate π like that's her whole job and she does it.
π¦ SYNOPSIS π¦
int ksmbd_vfs_truncate (struct ksmbd_work *work , struct ksmbd_file *fp
, loff_t size );
iconic signature, don't touch it β¨
π ARGUMENTS π
workβ thework. yeah. that's the whole description. she said "no further comment" πfpβ the ksmbd file pointer π«Ά your lil handle to the file in question.sizeβ truncate to given size π that's the number, bestie, the new size. periodt.
β RETURN β
0 on success, otherwise error π so like, zero means slay, anything else means go check the vibes (the error).
π SEE ALSO π
Kernel file ./fs/smb/server/vfs.c β go read the source, iykyk π
ksmbd_vfs_create(9)ksmbd_vfs_mkdir(9)check_lock_range(9)ksmbd_vfs_read(9)ksmbd_vfs_write(9)ksmbd_vfs_getattr(9)ksmbd_vfs_fsync(9)ksmbd_vfs_remove_file(9)ksmbd_vfs_link(9)ksmbd_vfs_listxattr(9)ksmbd_vfs_getxattr(9)ksmbd_vfs_setxattr(9)ksmbd_vfs_set_fadvise(9)ksmbd_vfs_empty_dir(9)ksmbd_vfs_lookup_in_dir(9)ksmbd_vfs_kern_path(9)ksmbd_vfs_kern_path_start_removing(9)ksmbd_vfs_init_kstat(9)
like, the whole friend group π«Ά collect them all, fr fr.
mwah π this page came to you from the source ./fs/smb/server, stamped October 2026, and filed under ksmbd_vfs_truncate(9) β bye bestie, go truncate something 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