|
Basic Solution File System - BSFS
|
Implements chown command for BSFS. More...
Functions | |
| int | chown (FILE *disk, superblock_t *sb, char **args) |
| Change file owner (uid) of a path (root only). | |
Implements chown command for BSFS.
| int chown | ( | FILE * | disk, |
| superblock_t * | sb, | ||
| char ** | args ) |
Change file owner (uid) of a path (root only).
Parses a decimal uid and updates the target's owner 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 uid in args[1], path in args[2]. |