Displaying 4 results from an estimated 4 matches for "short_base".
2018 Oct 30
2
Re: [PATCH nbdkit 4/4] Add floppy plugin.
...| 6 +
> tests/test-floppy.sh | 67 ++
> 10 files changed, 2082 insertions(+)
>
> +/* Used for dealing with VFAT LFNs when creating a directory. */
> +struct lfn {
> + const char *name; /* Original Unix filename. */
> + char short_base[8]; /* Short basename. */
> + char short_ext[3]; /* Short file extension. */
> + char *lfn; /* Long filename for MS-DOS as UTF16-LE. */
> + size_t lfn_size; /* Size *in bytes* of lfn. */
Including or excluding the trailing 2 bytes fo...
2018 Oct 30
0
Re: [PATCH nbdkit 4/4] Add floppy plugin.
On Tue, Oct 30, 2018 at 09:12:55AM -0500, Eric Blake wrote:
> >+/* Used for dealing with VFAT LFNs when creating a directory. */
> >+struct lfn {
> >+ const char *name; /* Original Unix filename. */
> >+ char short_base[8]; /* Short basename. */
> >+ char short_ext[3]; /* Short file extension. */
> >+ char *lfn; /* Long filename for MS-DOS as UTF16-LE. */
> >+ size_t lfn_size; /* Size *in bytes* of lfn. */
>
> Including or excluding t...
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
2018 Oct 28
0
[PATCH nbdkit 4/4] Add floppy plugin.
...+#include <sys/stat.h>
+
+#include <nbdkit-plugin.h>
+
+#include "byte-swapping.h"
+
+#include "virtual-floppy.h"
+
+/* Used for dealing with VFAT LFNs when creating a directory. */
+struct lfn {
+ const char *name; /* Original Unix filename. */
+ char short_base[8]; /* Short basename. */
+ char short_ext[3]; /* Short file extension. */
+ char *lfn; /* Long filename for MS-DOS as UTF16-LE. */
+ size_t lfn_size; /* Size *in bytes* of lfn. */
+};
+
+static int add_volume_label (const char *label, size_t...