Displaying 2 results from an estimated 2 matches for "nr_heads".
2018 Oct 28
0
[PATCH nbdkit 4/4] Add floppy plugin.
...2;
+ floppy->bootsect.nr_root_dir_entries = htole16 (0);
+ floppy->bootsect.old_nr_sectors = htole16 (0);
+ floppy->bootsect.media_descriptor = 0xf8;
+ floppy->bootsect.old_sectors_per_fat = htole16 (0);
+ floppy->bootsect.sectors_per_track = htole16 (0);
+ floppy->bootsect.nr_heads = htole16 (0);
+ floppy->bootsect.nr_hidden_sectors = htole32 (0);
+ floppy->bootsect.nr_sectors = htole32 (floppy->data_last_sector + 1);
+
+ floppy->bootsect.sectors_per_fat =
+ htole32 (floppy->fat_clusters * SECTORS_PER_CLUSTER);
+ floppy->bootsect.mirroring = htole16 (...
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