|
Basic Solution File System - BSFS
|
Implements chmod command for BSFS. More...
Functions | |
| int | chmod (FILE *disk, superblock_t *sb, char **args) |
| Change permission bits of a path. | |
Implements chmod command for BSFS.
| int chmod | ( | FILE * | disk, |
| superblock_t * | sb, | ||
| char ** | args ) |
Change permission bits of a path.
Parses the octal mode and calls the high-level API to update permission bits. Prints usage on invalid input and a concise error on failure.
| disk | Open filesystem image. |
| sb | Loaded superblock. |
| args | Command argv-like vector; expects mode in args[1], path in args[2]. |