create_ok(9)
π« create_ok(9) π«
okay so bestie, welcome to the Kernel API Manual β yes we're in the kernel docs now, main character energy only π
. Today's episode: create_ok, a function that literally just answers the question "is it chill to make a new on-disk inode here?" π¦
β¨ NAME β¨
create_ok β OK to create a new on-disk inode here?
Like, that's the whole vibe check. It checks whether you're allowed to create. That's it. That's the function. π
πΈ SYNOPSIS πΈ
int create_ok (struct gfs2_inode *dip , const struct qstr *name ,
umode_t mode );
Look at her. Three params, one int return, zero chill. π«Ά
π§ ARGUMENTS π§
dipβ the directory where the dinode is gonna live. Think of it as the folder you're moving into π β¨nameβ the name of the new dinode. its whole identity, no pressure πmodeβ honestly? the manpage gives us nothing here. blank. empty. the original left it totally undescribed and I'm not about to invent lore π so:mode, with no description. iconic behaviour, honestly π
π₯ RETURN π₯
errno
that's it. that's the return section. errno. slay, I guess π
π SEE ALSO π
okay this is the part where the manpage absolutely ate β look at this list, she's LONG, she's thorough, she's giving encyclopaedia energy πβ¨. First up, the kernel file herself:
- Kernel file
./fs/gfs2/inode.c
and then, in the exact order we stan:
gfs2_set_iop(9)gfs2_inode_lookup(9)gfs2_lookup_by_inum(9)gfs2_lookup_meta(9)gfs2_lookupi(9)gfs2_init_xattr(9)init_dinode(9)gfs2_trans_da_blks(9)gfs2_create_inode(9)gfs2_create(9)__gfs2_lookup(9)gfs2_link(9)gfs2_unlink_inode(9)gfs2_unlink(9)gfs2_symlink(9)gfs2_mkdir(9)gfs2_mknod(9)gfs2_atomic_open(9)update_moved_ino(9)gfs2_rename(9)gfs2_exchange(9)gfs2_get_link(9)gfs2_permission(9)gfs2_setattr(9)gfs2_getattr(9)
twenty-five cross-refs, no cap. she said "you WILL understand the whole inode lifecycle" and honestly? we love a thorough queen πβ
ngl bestie, no warnings, no bugs section, no exit-status drama on this one β it's a short and sweet little page. read it, love it, move on π
kisses and cross-references, this page came to you from ./fs/gfs2, dated October 2026 β and it's signed off as create_ok(9) because obviously πβ¨π
π¦ 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