VFS_MOUNTEDFROM(9)

✨ VFS_MOUNTEDFROM(9) ✨

okay so bestie, welcome to the Kernel Developer's Manual πŸ’… today we're talking about vfs_mountedfrom(9) β€” yes it's a section 9 page, yes it's kernel-dev coded, and yes it's gonna be quick but iconic πŸŽ€


🌸 NAME 🌸

vfs_mountedfrom β€” sets the mounted from name for a mount


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <sys/param.h>
#include <sys/mount.h>

void
vfs_mountedfrom(struct mount *mp, const char *from);

πŸ’– DESCRIPTION πŸ’–

so the vfs_mountedfrom() function sets the mounted from name for a mount. that's it, that's the job, she's a one-task queen πŸ‘‘

this value is what statfs(2) uses to fill in f_mntfromname. so like, whatever you set here is literally what shows up in that field, no cap 🫢

in most cases, from is the device that contains the file system β€” very normal, very demure. but in the case of a pseudo file system, it could be a descriptive name instead, like "devfs" or "procfs" ✨ because pseudo file systems don't have a real device, they just have vibes 🧚


πŸ‘‘ AUTHORS πŸ‘‘

this manual page was written by Chad David <davidc@acns.ab.ca> πŸ’œ


and that's the whole page bestie, we ate and left no crumbs πŸ“

this one came from the Debian crew and it's dated February 25, 2008 β€” vintage, lowkey a classic, fr fr πŸ’€πŸ’–

πŸ“¦ where this page comes from