Displaying 4 results from an estimated 4 matches for "base_ext4_image".
2019 Oct 07
0
[klibc:master] fstype: Drop obsolete support for "ext4dev"
...cp = strrchr(buf, '/');
- if (cp == NULL)
- continue;
- cp++;
- i = strlen(cp);
- if (i > 3) {
- t = cp + i - 3;
- if (!strcmp(t, ".ko"))
- *t = 0;
- }
- if (!strcmp(cp, fs_name)) {
- fclose(f);
- return 1;
- }
- }
- fclose(f);
- return 0;
-}
-
-static int base_ext4_image(const void *buf, unsigned long long *bytes,
- int *test_fs)
+static int ext4_image(const void *buf, unsigned long long *bytes)
{
const struct ext3_super_block *sb =
(const struct ext3_super_block *)buf;
@@ -209,43 +128,11 @@ static int base_ext4_image(const void *buf, unsigned long long...
2008 Oct 11
1
[PATCH] fstype: Fix ext4/ext4dev probing
...continue;
+ if ((cp = strrchr(buf, '/')) != NULL)
+ cp++;
+ i = strlen(cp);
+ if (i > 3) {
+ t = cp + i - 3;
+ if (!strcmp(t, ".ko"))
+ *t = 0;
+ }
+ if (!strcmp(cp, fs_name)) {
+ fclose(f);
+ return (1);
+ }
+ }
+ fclose(f);
+ return (0);
+}
+
+static int base_ext4_image(const void *buf, unsigned long long *bytes,
+ int *test_fs)
{
const struct ext3_super_block *sb =
(const struct ext3_super_block *)buf;
- /* ext4dev needs ext2 + journal + test_fs flag + one !ext3 feature */
- if (sb->s_magic == __cpu_to_le16(EXT2_SUPER_MAGIC)
- && (sb->...
2009 Oct 04
1
[PATCH] recognise ext4 without journal
....com>
---
usr/kinit/fstype/fstype.c | 8 --------
1 files changed, 0 insertions(+), 8 deletions(-)
diff --git a/usr/kinit/fstype/fstype.c b/usr/kinit/fstype/fstype.c
index 69e0e30..bf63b1b 100644
--- a/usr/kinit/fstype/fstype.c
+++ b/usr/kinit/fstype/fstype.c
@@ -196,14 +196,6 @@ static int base_ext4_image(const void *buf, unsigned long long *bytes,
if (sb->s_magic != __cpu_to_le16(EXT2_SUPER_MAGIC))
return 0;
- /*
- * For now, ext4 requires a journal -- but this may change
- * soon if we get that patch from Google. :-)
- */
- if ((sb->s_feature_compat
- & __cpu_to_le32(EXT3...
2011 Jul 05
6
[PATCH 1/7] ln: Check snprintf() return values
Add some semi-useful error message, as printing the failing dir or file
seems not really advisable after that error.
Signed-off-by: maximilian attems <max at stro.at>
---
usr/utils/ln.c | 20 +++++++++++++++-----
1 files changed, 15 insertions(+), 5 deletions(-)
diff --git a/usr/utils/ln.c b/usr/utils/ln.c
index e826eb8..257b33f 100644
--- a/usr/utils/ln.c
+++ b/usr/utils/ln.c
@@ -9,7