Displaying 5 results from an estimated 5 matches for "lfn_entry".
Did you mean:
fnentry
2018 Oct 30
2
Re: [PATCH nbdkit 4/4] Add floppy plugin.
...(const struct lfn *lfn,
> + uint8_t attributes, uint32_t file_size,
> + struct stat *statbuf,
> + size_t di, struct virtual_floppy *floppy)
> +{
> + uint8_t seq, checksum;
> + ssize_t i;
> + size_t j;
> + struct lfn_entry lfn_entry;
> + struct dir_entry entry;
> + int last_seq = 1;
> +
> + /* Compute a checksum for the shortname. In real LFN filesystems
> + * this is used to check whether a non-LFN-aware operating system
> + * (ie. MS-DOS) has edited the directory.
> + */
> + check...
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
2020 Apr 15
0
[PATCH nbdkit 2/9] floppy, iso, split, ssh: Use new vector type to store lists of strings.
.../* 0x00 or 0x80 if bootable */
@@ -130,6 +131,9 @@ struct dir_entry {
uint32_t size; /* 0x1C - file size */
} __attribute__((packed));
+/* Appendable list of struct dir_entry. */
+DEFINE_VECTOR_TYPE(dir_entries, struct dir_entry);
+
/* On disk directory entry (LFN). */
struct lfn_entry {
uint8_t seq; /* sequence number */
@@ -162,8 +166,7 @@ struct dir {
size_t nr_files;
/* On disk directory table. */
- struct dir_entry *table;
- size_t table_entries;
+ dir_entries table;
};
struct virtual_floppy {
diff --git a/plugins/floppy/directory-lfn.c b/p...
2018 Oct 28
0
[PATCH nbdkit 4/4] Add floppy plugin.
...le. */
+static int
+add_directory_entry (const struct lfn *lfn,
+ uint8_t attributes, uint32_t file_size,
+ struct stat *statbuf,
+ size_t di, struct virtual_floppy *floppy)
+{
+ uint8_t seq, checksum;
+ ssize_t i;
+ size_t j;
+ struct lfn_entry lfn_entry;
+ struct dir_entry entry;
+ int last_seq = 1;
+
+ /* Compute a checksum for the shortname. In real LFN filesystems
+ * this is used to check whether a non-LFN-aware operating system
+ * (ie. MS-DOS) has edited the directory.
+ */
+ checksum = 0;
+ for (j = 0; j < 8; ++j)
+...
2020 Apr 15
18
[PATCH nbdkit 0/9] Generic vector, and pass $nbdkit_stdio_safe to shell scripts.
This was a rather longer trip around the houses than I anticipated!
The basic purpose of the patch series is to set $nbdkit_stdio_safe to
"0" or "1" in sh and eval plugin scripts.
To do that, I ended up adding a nicer way to manipulate environ lists,
and to do that, I ended up adding a whole generic vector
implementation which is applicable in a lot of different places.