logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

state_analyzer - Explores and queries the fileserver state database interactively

Commands

state_analyzer supports the following interactive commands:

       h<...>  -- host menu
           •   hdr      -- display the host_state_header struct

           •   first    -- display the first host

           •   prev     -- display the previous host

           •   this     -- display this host

           •   next     -- display the next host

           •   last     -- display the last host

           •   dump     -- display all hosts

       fe<...>  -- FileEntry menu
           •   hdr      -- display the callback_state_header struct

           •   first    -- display the first FE

           •   prev     -- display the previous FE

           •   this     -- display this FE

           •   next     -- display the next FE

           •   last     -- display the last FE

           •   dump     -- display all FEs

           •   timeout  -- display the timeout queue heads

           •   hash     -- display the file entry hash buckets

           •   findbyindexid -- find an fe by its array index

           •   findbyfid(vol,vnode,unique) -- find an fe by its AFSFid

       cb<...>  -- CallBack menu
           •   hdr      -- display the callback_state_entry_header struct

           •   first    -- display the first CB

           •   prev     -- display the previous CB

           •   this     -- display this CB

           •   next     -- display the next CB

           •   last     -- display the last CB

           •   dump     -- display all CBs

       hexdump[offset[len]]  -- hex dump raw data
       quit     -- quit current menu
       exit     -- exit debugger
       help     -- help message

Description

       The demand-attach file server makes host / callback information persistent. On shutdown, the state is
       saved to database fsstate.dat(5).  On startup, the state is read, verified and restored.  This allows for
       file server shutdowns or restarts without breaking all callbacks (an operation that could otherwise take
       a long time).

       state_analyzer interactively explores and queries the saved state database, fsstate.dat(5).

       This command is only supported on the demand-attach file server.  It operates at an extremely low-level
       and hence requires detailed knowledge of the OpenAFS architecture and code.

Name

       state_analyzer - Explores and queries the fileserver state database interactively

Privilege Required

       The  issuer  must  have  read access to the file server state database, fsstate.dat.  Usually, this means
       that the issuer must be the local superuser "root" on the file server machine.

See Also

fsstate.dat(5), fssync-debug(8), salvsync-debug(8)

Synopsis

state_analyzer [statedumpfile | -h]

See Also