|
Basic Solution File System - BSFS
|
Implementation of dd command for BSFS. More...
Macros | |
| #define | DEFAULT_BLOCK_SIZE 512 |
| #define | MAX_BUFFER_SIZE (64 * 1024) |
Functions | |
| int | dd (FILE *disk, superblock_t *sb, char **args) |
| Generate a file by copying blocks from /dev/zero or /dev/random. | |
Variables | |
| char | current_path [] |
| Current working directory text (provided by the browser prompt) | |
Implementation of dd command for BSFS.
Creates files of specified size to test filesystem capacity and functionality.
Usage: dd if=<input> of=<output> bs=<block_size> count=<blocks>
| #define DEFAULT_BLOCK_SIZE 512 |
Default block size in bytes.
| #define MAX_BUFFER_SIZE (64 * 1024) |
Maximum allowed buffer size.
| int dd | ( | FILE * | disk, |
| superblock_t * | sb, | ||
| char ** | args ) |
Generate a file by copying blocks from /dev/zero or /dev/random.
Usage: dd if=/dev/zero of=<file> bs=<size> count=<n>
| disk | Open filesystem image. |
| sb | Loaded superblock. |
| args | Key-value args (if/of/bs/count) parsed by the command. |