|
Basic Solution File System - BSFS
|
Implements chgrp command for BSFS. More...
Functions | |
| int | chgrp (FILE *disk, superblock_t *sb, char **args) |
| Change file group (gid) of a path (root only). | |
Implements chgrp command for BSFS.
| int chgrp | ( | FILE * | disk, |
| superblock_t * | sb, | ||
| char ** | args ) |
Change file group (gid) of a path (root only).
Parses a decimal gid and updates the target's group via the API. Prints usage on invalid arguments and a concise error on failure.
| disk | Open filesystem image. |
| sb | Loaded superblock. |
| args | Command argv-like vector; expects gid in args[1], path in args[2]. |