Displaying 4 results from an estimated 4 matches for "linuxdisk_debug_filesystem".
2019 Feb 19
2
Re: [PATCH nbdkit 4/4] Add linuxdisk plugin.
...t; + if (!hardlinked) {
> + /* Normal case: creating a new inode. */
> + last_file = &files[i];
> + assert (!S_ISDIR (files[i].statbuf.st_mode));
> +
> + if (e2copyfile (fs, &files[i]) == -1)
> + return -1;
> +
> + if (linuxdisk_debug_filesystem)
> + nbdkit_debug ("%s: <%" PRIu32 ">/%s -> <%" PRIu32 ">",
> + files[i].type,
> + files[i].dir_ino, files[i].name, files[i].ino);
> + }
> + else {
> + /* Creating...
2019 Feb 19
0
[PATCH nbdkit 4/4] Add linuxdisk plugin.
...ning the following:
+ */
+#define NO_INLINE_FUNCS
+#include <ext2fs.h>
+
+#include <nbdkit-plugin.h>
+
+#include "get-current-dir-name.h"
+#include "minmax.h"
+#include "rounding.h"
+#include "utils.h"
+
+#include "virtual-disk.h"
+
+int linuxdisk_debug_filesystem; /* -D linuxdisk.filesystem=1 */
+
+/* Per-file information collected in the first pass. */
+struct file {
+ char *pathname; /* Full host path to the file. */
+ char *name; /* Base name of the file. */
+ ext2_ino_t dir_ino; /* Containing directory inode...
2019 Feb 19
7
[PATCH nbdkit 0/4] New plugin: Add linuxdisk plugin.
Turns out Japanese trains are good for coding!
In supermin we have a bunch of code to create the libguestfs
appliance. It creates it directly using libext2fs (part of
e2fsprogs). We can use the same technique to create ext2 virtual
disks in nbdkit, which is what this new plugin does. Why a new plugin
instead of modifying the floppy plugin? See the 4/4 commit message
for an explanation.
The
2019 Feb 19
6
[PATCH nbdkit v2 0/5] Add linuxdisk plugin.
Another interesting thing you can do with this plugin:
https://rwmj.wordpress.com/2019/02/19/nbdkit-linuxdisk-plugin/
v2:
- Fix inconsistent tab/space.
- All 3 plugins now contain a block of text pointing to the
other 2 plugins.
- TMDIR -> TMPDIR
- Unlink the temporary file and other cleanups along error paths.
- fclose -> pclose, and check the return value for errors.
-