search for: lfn_size

Displaying 4 results from an estimated 4 matches for "lfn_size".

2018 Oct 30
2
Re: [PATCH nbdkit 4/4] Add floppy plugin.
...ct 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 for a terminating NUL character? > +/* Create the on disk directory table for dirs[di]. */ > +int > +create_directory (size_t di, const char *label, > + struct virtual_floppy *flo...
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.
...ing 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 di, struct virtual_floppy *floppy); +static int add_dot_entries (size_t di, struct virtual_floppy *floppy); +static int add_directory_entry (const struct lfn *lfn, uint8_t attributes, uint32_t...
2018 Oct 30
0
Re: [PATCH nbdkit 4/4] Add floppy plugin.
...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 for a terminating NUL character? This is a very good question which I also asked and answered (by looking at the Linux code). The documentation says that there must be a trailing 2-byte NUL, *and* t...