fh_want_write(9)
π fh_want_write(9)
ok so this is a page from the Kernel API Manual bestie, and it's literally about fh_want_write β the little function that asks "hey, can I write to this export or not?" π
β¨ NAME β¨
fh_want_write β Get write access to an export πΈ
π¦ SYNOPSIS π¦
int fh_want_write (struct svc_fh *fhp );
π ARGUMENTS π
fhpβ File handle of file to be written. that's the one, the file handle, the whole point π«Ά
π DESCRIPTION π
ok so listen π β the caller must invoke fh_drop_write when its write operation is complete. like, that's not a suggestion, that's the rule, no cap π
It returns 0 if the file handle's export can be written to. slay, go off β¨
Otherwise? the export is not prepared for updates, and the returned negative errno value reflects the reason for the failure. so if you get a negative number back, that's your explanation right there, iykyk π₯
real talk bestie: the fh_drop_write follow-up is mandatory, not optional. don't leave it hanging π
π SEE ALSO π
- Kernel file
./fs/nfsd/nfsfh.h fh_drop_write(9)knfsd_fh_hash(9)fh_clear_pre_post_attrs(9)
and that's the whole page, bestie, you ate that π π
mwah π β brought to you by ./fs/nfsd, dated October 2026 β¨
π¦ 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