Displaying 7 results from an estimated 7 matches for "ext2fs_read_bitmaps".
2014 Jul 30
2
[PATCH 1/3] ext2: create a struct for the OCaml 't' type
...amp;data);
CAMLreturn (fsv);
}
@@ -145,7 +150,7 @@ supermin_ext2fs_close (value fsv)
ext2_finalize (fsv);
/* So we don't double-free in the finalizer. */
- Ext2fs_val (fsv) = NULL;
+ Ext2fs_val (fsv).fs = NULL;
CAMLreturn (Val_unit);
}
@@ -154,14 +159,14 @@ value
supermin_ext2fs_read_bitmaps (value fsv)
{
CAMLparam1 (fsv);
- ext2_filsys fs;
+ struct ext2_data data;
errcode_t err;
- fs = Ext2fs_val (fsv);
- if (fs == NULL)
+ data = Ext2fs_val (fsv);
+ if (data.fs == NULL)
ext2_handle_closed ();
- err = ext2fs_read_bitmaps (fs);
+ err = ext2fs_read_bitmaps (data.f...
2019 Feb 19
2
Re: [PATCH nbdkit 4/4] Add linuxdisk plugin.
...(filename, EXT2_FLAG_RW|EXT2_FLAG_64BITS, 0, 0,
> + unix_io_manager, &fs);
> + unlink (filename);
> + free (filename);
> + if (err) {
> + nbdkit_error ("ext2fs_open: %s", error_message (err));
> + return -1;
> + }
> +
> + err = ext2fs_read_bitmaps (fs);
> + if (err) {
> + nbdkit_error ("ext2fs_read_bitmaps: %s", error_message (err));
> + ext2fs_close (fs);
> + return -1;
> + }
> +
> + /* First pass: This creates subdirectories in the filesystem and
> + * also builds a list of files so we can id...
2015 Dec 02
4
[PATCH 0/3] supermin: add --include-packagelist
Hi,
to ease debugging issues with appliances (e.g. when used in libguestfs),
using --include-packagelist will add a file containing the list of all
the packages used.
Thanks,
Pino Toscano (3):
ext2: add ext2fs_chmod and ext2fs_chown
chroot: factor out file copy code
Add --include-packagelist
src/build.ml | 42 +++++++++++++++++++++++++------
src/chroot.ml | 29
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
0
[PATCH nbdkit 4/4] Add linuxdisk plugin.
...Open the filesystem. */
+ err = ext2fs_open (filename, EXT2_FLAG_RW|EXT2_FLAG_64BITS, 0, 0,
+ unix_io_manager, &fs);
+ unlink (filename);
+ free (filename);
+ if (err) {
+ nbdkit_error ("ext2fs_open: %s", error_message (err));
+ return -1;
+ }
+
+ err = ext2fs_read_bitmaps (fs);
+ if (err) {
+ nbdkit_error ("ext2fs_read_bitmaps: %s", error_message (err));
+ ext2fs_close (fs);
+ return -1;
+ }
+
+ /* First pass: This creates subdirectories in the filesystem and
+ * also builds a list of files so we can identify hard links.
+ */
+ for (i = 0;...
2014 Feb 25
2
[PATCH supermin v4] Supermin 5 rewrite.
...e_t err =
- ext2fs_open (appliance, fs_flags, 0, 0, unix_io_manager, &fs);
- if (err != 0)
- error (EXIT_FAILURE, 0, "ext2fs_open: %s", error_message (err));
-
- /* Bitmaps are not loaded by default, so load them. ext2fs_close will
- * write out any changes.
- */
- err = ext2fs_read_bitmaps (fs);
- if (err != 0)
- error (EXIT_FAILURE, 0, "ext2fs_read_bitmaps: %s", error_message (err));
-}
-
-static void
-ext2_end (void)
-{
- if (verbose)
- print_timestamped_message ("closing ext2 filesystem");
-
- /* Write out changes and close. */
- errcode_t err;
-#ifde...
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.
-