Basic Solution File System - BSFS
Loading...
Searching...
No Matches
stat.c File Reference

Implements the stat command for the BSFS filesystem. More...

Functions

int stat (FILE *disk, superblock_t *sb, char **args)
 Show inode metadata for a path.

Detailed Description

Implements the stat command for the BSFS filesystem.

Shows metadata information about a file or directory.

Function Documentation

◆ stat()

int stat ( FILE * disk,
superblock_t * sb,
char ** args )

Show inode metadata for a path.

Usage: stat <path>

Parameters
diskOpen filesystem image.
sbLoaded superblock.
argsPath in args[1].
Returns
1 to continue the REPL.