search for: e2prog

Displaying 12 results from an estimated 12 matches for "e2prog".

2012 Aug 30
1
[PATCH] collect list of called external commands
...e COMMAND_FLAG_FD_MASK (1024-1) #define COMMAND_FLAG_FOLD_STDOUT_ON_STDERR 1024 #define COMMAND_FLAG_CHROOT_COPY_FILE_TO_STDIN 2048 @@ -171,7 +174,7 @@ extern int filesystem_available (const char *filesystem); extern int sync_disks (void); /*-- in ext2.c --*/ -extern int e2prog (char *name); /* Massive hack for RHEL 5. */ +extern int e2prog (const char *name); /* Massive hack for RHEL 5. */ /* Confirmed this is true up to ext4 from the Linux sources. */ #define EXT2_LABEL_MAX 16 diff --git a/daemon/dd.c b/daemon/dd.c index 8bc4aab..d4ee094 100644 --- a/daemon/dd.c +++...
2012 Jan 13
4
[PATCH 1/3] ext2: tweak the error returned message of resize2fs-M(BZ755729)
...lt;gaowanlong at cn.fujitsu.com> --- daemon/ext2.c | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/daemon/ext2.c b/daemon/ext2.c index 79fd354..c280ca2 100644 --- a/daemon/ext2.c +++ b/daemon/ext2.c @@ -277,9 +277,14 @@ do_resize2fs_M (const char *device) if (e2prog (prog) == -1) return -1; - r = command (NULL, &err, prog, "-M" , device, NULL); + r = command (NULL, &err, prog, "-M", device, NULL); if (r == -1) { - reply_with_error ("%s", err); + if (strstr (err, "e2fsck -f")) { + free (err)...
2012 Jan 13
3
[PATCH v2 1/3] ext2: tweak the error returned message of resize2fs-M(BZ755729)
...lt;gaowanlong at cn.fujitsu.com> --- daemon/ext2.c | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/daemon/ext2.c b/daemon/ext2.c index 79fd354..c280ca2 100644 --- a/daemon/ext2.c +++ b/daemon/ext2.c @@ -277,9 +277,14 @@ do_resize2fs_M (const char *device) if (e2prog (prog) == -1) return -1; - r = command (NULL, &err, prog, "-M" , device, NULL); + r = command (NULL, &err, prog, "-M", device, NULL); if (r == -1) { - reply_with_error ("%s", err); + if (strstr (err, "e2fsck -f")) { + free (err)...
2012 Jan 13
2
[PATCH 1/2] ext2: tweak the error returned message of resize2fs-M(BZ755729)
...g at cn.fujitsu.com> --- daemon/ext2.c | 20 ++++++++++++++++++-- 1 files changed, 18 insertions(+), 2 deletions(-) diff --git a/daemon/ext2.c b/daemon/ext2.c index 79fd354..9fe938e 100644 --- a/daemon/ext2.c +++ b/daemon/ext2.c @@ -277,9 +277,25 @@ do_resize2fs_M (const char *device) if (e2prog (prog) == -1) return -1; - r = command (NULL, &err, prog, "-M" , device, NULL); + r = command (NULL, &err, prog, "-M", device, NULL); if (r == -1) { - reply_with_error ("%s", err); + int i = 0; + int len = strlen (err); + char *err_wrap...
2012 Mar 09
5
[PATCH 0/5] Fixes to resize2fs (RHBZ#755729, RHBZ#801640)
https://bugzilla.redhat.com/show_bug.cgi?id=755729 This bug reports that the error message printed by the resize2fs API calls (which comes directly from the resize2fs command) says: Please run 'e2fsck -f /dev/vda1' first. That command is not possible from guestfish (where it would be 'e2fsck-f' or 'e2fsck ... forceall:true'). Fixing that bug caused this bug:
2011 Jan 14
0
Patch. not working
...t; --- a/daemon/ext2.c > +++ b/daemon/ext2.c > @@ -266,6 +266,27 @@ do_resize2fs_size (const char *device, int64_t size) > } > > int > +do_resize2fs_M (const char *device) > +{ > + char *err; > + int r; > + > + char prog[] = "resize2fs"; > + if (e2prog (prog) == -1) > + return -1; > + > + r = command (NULL, &err, prog, "-M" , device, NULL); > + if (r == -1) { > + reply_with_error ("%s", err); > + free (err); > + return -1; > + } > + > + free (err); > + return 0; > +} &gt...
2006 Mar 28
0
Salvage or undelete files of damaged ext2/ext3 file systems
...an indirect block. The guessing, and the fact that some blocks may have been reused unfortunately means that there may be errors in the salvaged files. So check them afterwards. The code is alpha and has only been tested on a Linux i386 system Salvage is an addition to the debugfs program in the e2progs package by Ted Ts'o. Download: http://www.dkuug.dk/keld/e2fsprogs-1.38-ks1.tar.gz. Then follow INSTALL instructions. Author: Keld Simonsen, keld at dkuug.dk
2011 Dec 14
1
[PATCH] mkfs: optimization and code cleanup
...t2/3/4 run the mke2fs program directly. This is because * the mkfs program "eats" some options, in particular the -F * option. */ - if (STREQ (fstype, "ext2") || STREQ (fstype, "ext3") || - STREQ (fstype, "ext4")) { + if (extfs) { if (e2prog (mke2fs) == -1) return -1; ADD_ARG (argv, i, mke2fs); @@ -64,9 +67,7 @@ do_mkfs_opts (const char *fstype, const char *device, int blocksize, /* Force mke2fs to create a filesystem, even if it thinks it * shouldn't (RHBZ#690819). */ - if (STREQ (fstype, "ext2")...
2012 Feb 27
4
[PATCH 0/4] Add various ntfs* tools and unify label setting.
This miscellaneous patch adds bindings for: - ntfsfix - ntfsclone - ntfslabel and unifies filesystem label setting through a single API 'set-label' which replaces 'set-e2label' and is also able to set labels on NTFS using the ntfslabel program. 'ntfsfix' has been added as a possible way to fix RHBZ#797760. However I have not found a way to fully fix this bug. See
2011 Nov 10
5
[PATCH v2] Add tune2fs command.
The changes since the previous patch: - safe ADD_ARG macro for adding arguments to a fixed size stack array - support for testing functions that return RHashtable, ie. tune2fs-l. - add tests that set (tune2fs) and get (tune2fs-l) various parameters. - only one 'intervalbetweenchecks' parameter (in seconds) Rich.
2011 Nov 09
6
[PATCH] Add tune2fs support to libguestfs.
At the moment OpenStack uses kpartx and nbd to resize filesystems and inject files to guests. I sincerely hope they don't allow untrusted users to upload guest images / AMIs :-( To fix this I'm looking into adding libguestfs support as an optional backend in OpenStack. The only missing feature in libguestfs is the ability to call tune2fs on a filesystem. This patch series adds tune2fs
2012 Mar 13
2
[PATCH 0/2] 'int' to 'size_t' changes
These two patches are probably not completely independent, but separating them is a lot of work. With *both* patches applied, all the tests and extra-tests pass. That's no guarantee however that there isn't a mistake, so I don't think this patch is a candidate for the 1.16 branch, until it's had a lot more testing in development. Rich.