Displaying 6 results from an estimated 6 matches for "short_ext".
2018 Oct 30
2
Re: [PATCH nbdkit 4/4] Add floppy plugin.
...| 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 for a terminating NUL character?
> +/* Create the on dis...
2018 Oct 30
0
Re: [PATCH nbdkit 4/4] Add floppy plugin.
...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 the trailing 2 bytes for a terminating NUL character?
This is a...
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.
...ugin.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 di, struct virtual_floppy *floppy);
+static int add_do...
2009 Feb 08
1
[PATCH 1/1] COMBOOT API: Add calls for directory functions; Implement for FAT; Try 2
...cmp al,'.'
+ jz .short_dot
+.short_file_loop:
+ cmp al,' '
+ jz .short_skip_bs
+ stosb
+ loop .short_file_loop
+ jmp .short_period
+.short_skip_bs: ; skip blank spaces in FILENAME (before EXT)
+ add si,cx
+ dec si
+.short_period:
+ mov al,'.'
+ stosb
+ mov cx,3
+.short_ext:
+ gs lodsb
+ cmp al,' '
+ jz .short_done
+ stosb
+ loop .short_ext
+ jmp .short_done
+.short_dot:
+ stosb
+ gs lodsb
+ cmp al,' '
+ jz .short_done
+ stosb
+.short_done:
+ mov al,0 ; Null-terminate the short strings
+ stosb
+ pop di
+ pop si
+ pop cx
+ mov eax,edx
+...
2008 Dec 04
2
[PATCH 1/1] COMBOOT API: Add calls for directory functions; Implement for FAT
...+ push si
+ push di
+ mov cx,8
+.short_file:
+ gs lodsb
+ cmp al,' '
+ jz .short_skip_bs
+ stosb
+ loop .short_file
+ jmp .short_period
+.short_skip_bs: ; skip blank spaces in FILENAME (before EXT)
+ add si,cx
+ dec si
+.short_period:
+ mov al,'.'
+ stosb
+ mov cx,3
+.short_ext:
+ gs lodsb
+ cmp al,' '
+ jz .short_done
+ stosb
+ loop .short_ext
+.short_done:
+ mov al,0 ; Null-terminate the short strings
+ stosb
+ pop di
+ pop si
+ pop cx
+ mov eax,edx
+.get_info:
+ mov ebx,[gs:si+28] ; length
+ mov dl,[gs:si+11] ; type
+.next_entry:
+ add si,DIRENT_S...