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

Implements the recovery listing command for the BSFS filesystem. More...

Functions

int recovery (FILE *disk, superblock_t *sb, char **args)
 List Recovery snapshots, optionally filtered by original name.

Detailed Description

Implements the recovery listing command for the BSFS filesystem.

Usage:

  • recovery -> list all recovery entries
  • recovery <name> -> list entries filtered by original filename

Function Documentation

◆ recovery()

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

List Recovery snapshots, optionally filtered by original name.

Usage: recovery [name]

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