search for: ext2fs_read_inod

Displaying 14 results from an estimated 14 matches for "ext2fs_read_inod".

Did you mean: ext2fs_read_inode
2011 Mar 29
1
febootstrap-supermin-helper: ext2fs_read_inode: Illegal inode number
...108ms] visiting /usr/lib64/guestfs/supermin.d supermin helper [01108ms] visiting /usr/lib64/guestfs/supermin.d/base.img supermin helper [01221ms] visiting /usr/lib64/guestfs/supermin.d/daemon.img supermin helper [01224ms] visiting /usr/lib64/guestfs/supermin.d/hostfiles febootstrap-supermin-helper: ext2fs_read_inode: Illegal inode number I attach the content of supermin.d ... maybe someone has an idea whats going wrong. thx & Regards Andreas -------------- next part -------------- A non-text attachment was scrubbed... Name: supermin.d.sles11sp1.tar.bz2 Type: application/x-bzip Size: 868757 bytes Desc: n...
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
2016 Jul 06
0
[PATCH] ext2: Don't load whole files into memory when copying to the appliance (RHBZ#1113065).
...(err != 0) + ext2_error_to_exception ("ext2fs_file_flush", err, filename); + err = ext2fs_file_close (file); + if (err != 0) + ext2_error_to_exception ("ext2fs_file_close", err, filename); + + /* Update the true size in the inode. */ + struct ext2_inode inode; + err = ext2fs_read_inode (fs, ino, &inode); + if (err != 0) + ext2_error_to_exception ("ext2fs_read_inode", err, filename); + inode.i_size = size; + err = ext2fs_write_inode (fs, ino, &inode); + if (err != 0) + ext2_error_to_exception ("ext2fs_write_inode", err, filename); +} + /* Th...
2017 Jul 13
3
[PATCH supermin v2] ext2: Create symlinks properly (RHBZ#1470157).
...(err != 0) - ext2_error_to_exception ("ext2fs_file_flush", err, filename); - err = ext2fs_file_close (file); - if (err != 0) - ext2_error_to_exception ("ext2fs_file_close", err, filename); - - /* Update the true size in the inode. */ - struct ext2_inode inode; - err = ext2fs_read_inode (fs, ino, &inode); - if (err != 0) - ext2_error_to_exception ("ext2fs_read_inode", err, filename); - inode.i_size = size; - err = ext2fs_write_inode (fs, ino, &inode); - if (err != 0) - ext2_error_to_exception ("ext2fs_write_inode", err, filename); -} - -/* Sa...
2017 Jul 12
3
[PATCH supermin] ext2: Create symlinks properly (RHBZ#1470157).
...(err != 0) - ext2_error_to_exception ("ext2fs_file_flush", err, filename); - err = ext2fs_file_close (file); - if (err != 0) - ext2_error_to_exception ("ext2fs_file_close", err, filename); - - /* Update the true size in the inode. */ - struct ext2_inode inode; - err = ext2fs_read_inode (fs, ino, &inode); - if (err != 0) - ext2_error_to_exception ("ext2fs_read_inode", err, filename); - inode.i_size = size; - err = ext2fs_write_inode (fs, ino, &inode); - if (err != 0) - ext2_error_to_exception ("ext2fs_write_inode", err, filename); -} - -/* Sa...
2020 Feb 12
0
[nbdkit PATCH 3/3] ext2: Add mode for letting client exportname choose file from image
..._message (err)); + nbdkit_error ("%s: namei: %s", fname, error_message (err)); goto err1; } } - /* Check the file is a regular file. + /* Check that fname is a regular file. * XXX This won't follow symlinks, we'd have to do that manually. */ err = ext2fs_read_inode (h->fs, h->ino, &inode); if (err != 0) { - nbdkit_error ("%s: inode: %s", file, error_message (err)); + nbdkit_error ("%s: inode: %s", fname, error_message (err)); goto err1; } if (!LINUX_S_ISREG (inode.i_mode)) { - nbdkit_error ("%s: must...
2019 Feb 19
0
[PATCH nbdkit 4/4] Add linuxdisk plugin.
...if (err) { + nbdkit_error ("ext2fs_expand_dir: %s", error_message (err)); + return -1; + } + goto again; + } + nbdkit_error ("ext2fs_mkdir: %s", error_message (err)); + return -1; + } + + /* Copy the permissions etc to the inode. */ + err = ext2fs_read_inode (fs, *ino, &inode); + if (err) { + nbdkit_error ("ext2fs_read_inode: %s", error_message (err)); + return -1; + } + inode.i_mode = mode; + inode.i_uid = statbuf->st_uid; + inode.i_gid = statbuf->st_gid; + inode.i_ctime = statbuf->st_ctime; + inode.i_atime = statb...
2020 Feb 12
4
[nbdkit PATCH 0/3] Make ext2 a filter
...le[1], &h->ino); if (err != 0) { - nbdkit_error ("%s: %s: namei: %s", disk, file, error_message (err)); + nbdkit_error ("%s: namei: %s", file, error_message (err)); goto err1; } } @@ -168,12 +191,11 @@ ext2_open (int readonly) */ err = ext2fs_read_inode (h->fs, h->ino, &inode); if (err != 0) { - nbdkit_error ("%s: %s: inode: %s", disk, file, error_message (err)); + nbdkit_error ("%s: inode: %s", file, error_message (err)); goto err1; } if (!LINUX_S_ISREG (inode.i_mode)) { - nbdkit_error ("...
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. -
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
2014 Feb 25
2
[PATCH supermin v4] Supermin 5 rewrite.
...name, basename, error_message (err)); - goto try_again; - } else - error (EXIT_FAILURE, 0, "ext2fs_mkdir: %s/%s: %s", - dirname, basename, error_message (err)); - } - - /* Copy the final permissions, UID etc. to the inode. */ - struct ext2_inode inode; - err = ext2fs_read_inode (fs, ino, &inode); - if (err != 0) - error (EXIT_FAILURE, 0, "ext2fs_read_inode: %s", error_message (err)); - inode.i_mode = mode; - inode.i_uid = uid; - inode.i_gid = gid; - inode.i_ctime = ctime; - inode.i_atime = atime; - inode.i_mtime = mtime; - err = ext2fs_write_inod...
2018 Jun 07
4
[PATCH nbdkit 0/4] plugins: Add new "ext2" plugin, for accessing ext2, ext3 or ext4 filesystems.
There is a small test provided. I tested this a lot more locally and it seems pretty robust. Rich.
2014 Dec 24
14
[PATCH 0/8] extlinux: support unmounted ext2/3/4 filesystem
Hello syslinux, Merry Christmas! These patches will make extlinux work with umounted ext2/3/4 filesystem, for example: $ extlinux -i /dev/sdXN or $ extlinux -i file_block Also it can work with something like: $ extlinux /dev/sdXN --reset-adv or $ extlinux file_block --reset-adv We don't use a new option (I planed to use "-d" but it is already in use), it will check whether the
2015 Jan 02
13
[PATCH 0/9] linux/syslinux: support ext2/3/4 device
Hello, Happy New Year! These patches make syslinux/linux support ext2/3/4, and it doesn't require the root privilege, I'd like to add a separate e2fs/syslinux, if that is more appropriate, it should be easy to do that. I put these patches on github so that you can easily get them in case you'd like to test them. (The repo's name is sys_tmp, which avoids confusing others, I will