search for: data_clusters

Displaying 2 results from an estimated 2 matches for "data_clusters".

2018 Oct 28
0
[PATCH nbdkit 4/4] Add floppy plugin.
...nr_clusters = nr_bytes / CLUSTER_SIZE; + if (cluster + nr_clusters > UINT32_MAX) { + nbdkit_error ("disk image is too large for the MBR disk format"); + return -1; + } + floppy->files[i].nr_clusters = nr_clusters; + cluster += nr_clusters; + } + + floppy->data_clusters = floppy->data_size / CLUSTER_SIZE; + + /* Despite its name, FAT32 only allows 28 bit cluster numbers, so + * give an error if we go beyond this. + */ + if (floppy->data_clusters >= 0x10000000) { + nbdkit_error ("disk image is too large for the FAT32 disk format"); +...
2018 Oct 28
6
[PATCH nbdkit 0/4] Add floppy plugin.
Add nbdkit-floppy-plugin, “inspired” by qemu's VVFAT driver, but without the ability to handle writes. The implementation is pretty complete, supporting FAT32, LFNs, volume labels, timestamps, etc, and it passes both ‘make check’ and ‘make check-valgrind’. Usage is simple; to serve the current directory: $ nbdkit floppy . Then using guestfish (or any NBD client): $ guestfish --ro