GFLSOF(1)

πŸ’– GFLSOF πŸ’–

okay bestie, so gflsof is the manual page for the gflsof command in the Gfarm fam, and it's literally just "list currently opened Gfarm files" ✨ iykyk.


✨ NAME ✨

gflsof β€” list currently opened Gfarm files πŸ—‚οΈπŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

gflsof [-AW] [-P path] [-D domainname-of-gfsd]
       [-U domainname-of-user-host] [-u username]

gflsof [-AW] [-P path] [-D domainname-of-gfsd]
       [-U domainname-of-user-host] [-u username] -C

gflsof [-AW] [-P path] [-D domainname-of-gfsd]
       [-U domainname-of-user-host] [-u username] -G

🌸 DESCRIPTION 🌸

So if you don't pass -C and you don't pass -G, it spills all the tea about every Gfarm file descriptor. πŸ«–βœ¨ Here's the field-by-field breakdown, because the way this thing prints columns is honestly iconic:

  • the USER field β†’ the username
  • the GPID field β†’ the Gfarm process ID
  • the FD field β†’ the Gfarm file descriptor number. and listen, the character right after that descriptor number is doing a lot of work:
    • if it's r, it means read-only open πŸ“
    • if it's w, it means write-only open ✍️
    • if it's u, it means read-write open πŸ”₯
  • the TYPE fields β†’ the type of the inode, where REG is a file, DIR is a directory, and LNK is a symbolic link πŸ¦‹
  • the INODE field β†’ the inode number
  • the GEN field β†’ the generation number of the inode
  • the SIZE/OFF β†’ shows the seek-offset value if the inode is a directory, or the file size if the inode is a file πŸ“
  • the CLIENT field β†’ hostname and port number of the client which is connecting to the gfmd
  • the GFSD field β†’ hostname and port number of the gfsd which is connecting to the gfmd

if you pass the -C option, this command shows only hostnames of clients which are opening descriptors πŸ’»βœ¨

and if you pass the -G option, this command shows only hostnames of gfsd which are opening file replicas πŸ—„οΈβœ¨


πŸ’… OPTIONS πŸ’…

  • -A β€” display information about all users. lowkey exclusive: only the gfarmadm group is allowed to use this option πŸ‘‘
  • -W β€” limit subject descriptors to which are either write-only opened or read-write opened ✍️
  • -P path β€” specify a pathname or a Gfarm URL to identify the metadata server which will be accessed by this command. if you don't specify it, "." is used as the default value 🌈
  • -D domainname-of-gfsd β€” limit subject descriptors to which gfsd is currently opening a replica and the gfsd belongs to the specified domain 🌐
  • -U domainname-of-user-host β€” limit subject descriptors to which client host belongs to the specified domain 🏠
  • -u username β€” limit subject descriptors to which is opened by the specified user. only the gfarmadm group is allowed to use this option πŸ’œ
  • -? β€” displays a list of command options πŸ™ˆ

⭐ EXAMPLES ⭐

Example 1. list file descriptors which are opened by myself πŸͺž

gflsof

Example 2. list all users' file descriptors πŸ‘₯

gflsof -A

Example 3. list filesystem nodes which are currently opening file replicas in writable mode ✍️πŸ”₯

gflsof -AWG

Example 4. list descriptors that corresponding gfsd processes are opening file replicas in writable mode πŸ—„οΈ

gflsof -AW -D ''

Example 5. list client hosts which belong to example.org domain and user john is opening descriptors on the hosts πŸŒπŸ’»

gflsof -U example.org -u john -C

ngl bestie, that's the whole vibe. go forth and gflsof responsibly 🫢

k byeeee πŸ’– this was the Gfarm manual page, dated 27 Sep 2016 β€” periodt βœ¨πŸŽ€