search for: ext2_super_magic

Displaying 13 results from an estimated 13 matches for "ext2_super_magic".

2008 Oct 11
1
[PATCH] fstype: Fix ext4/ext4dev probing
...rn (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->s_feature_compat - & __cpu_to_le32(EXT3_FEATURE_COMPAT_HAS_JOURNAL)) - && (sb->s_flags & __cpu_to_le32(EXT2_FLAGS_TEST_FILESYS)) - && (sb->s_feature_incompat - & __cpu_to_le32(EXT3_FEATURE_RO_COMPAT_SUPP) - || sb->s_feature_incompat -...
2009 Oct 04
1
[PATCH] recognise ext4 without journal
...ions(-) 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_FEATURE_COMPAT_HAS_JOURNAL)) == 0) - return 0; - /* There is at least one feature not supported...
2018 Jul 02
0
Samba 4.3.11 accessing disk every minute
...;\0\0\0h", 4}], 1) = 4 readv(31, [{"\376SMB@\0\1\0\0\0\0\0\20\0\1\0000\0\0\0\0\0\0\0W\1\0\0\0\0\0\0"..., 104}], 1) = 104 gettimeofday({1530539063, 72650}, NULL) = 0 stat64(".", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0 statfs64(".", 88, {f_type="EXT2_SUPER_MAGIC", f_bsize=4096, f_blocks=1451469082, f_bfree=912073125, f_bavail=897438740, f_files=182882304, f_ffree=182881143, f_fsid={2141529791, -1094344988}, f_namelen=255, f_frsize=4096}) = 0 stat64(".", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0 geteuid32() =...
2003 Apr 16
0
Possible bug in samba-2.2.8a-1...
...ot;..., 912, 0) = 912 select(20, [9 11 19], NULL, NULL, {60, 0}) = 1 (in [11], left {59, 880000}) read(11, "\0\0\0#", 4) = 4 read(11, "\377SMB\200\0\0\0\0\10\1\0\0\0\0"..., 35) = 35 gettimeofday({1050510946, 443001}, NULL) = 0 statfs(".", {f_type="EXT2_SUPER_MAGIC", f_bsize=1024, f_blocks=1949119, f_bfree=274728, f_files=65280, f_ffree=24610, f_namelen=255}}) = 0 stat(".", {st_mode=030210, st_size=0, ...}) = 0 open("/proc/mounts", O_RDONLY) = -1 ENOENT (No such file or directory) open("/etc/mtab", O_RDONLY)...
2012 Aug 02
0
[PATCH 3/3] ALPHA: implement and use rdwr_bytes
...274,7 @@ static int ext2_fs_init(struct fs_info *fs) struct cache *cs; /* read the super block */ - disk->rdwr_sectors(disk, &sb, 2, 2, 0); + rdwr_bytes(disk, &sb, 2*512, 2*512, 0); /* check if it is ext2, since we also support btrfs now */ if (sb.s_magic != EXT2_SUPER_MAGIC) diff --git a/core/fs/fat/fat.c b/core/fs/fat/fat.c index b08923c..3c7620e 100644 --- a/core/fs/fat/fat.c +++ b/core/fs/fat/fat.c @@ -731,7 +731,7 @@ static int vfat_fs_init(struct fs_info *fs) fs->sector_size = 1 << fs->sector_shift; fs->block_size = 1 << fs->b...
2008 Jun 16
0
latest fixes
...init/fstype/fstype.c @@ -115,11 +115,15 @@ static int ext4_image(const void *buf, unsigned long long *bytes) 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->s_feature_compat + & __cpu_to_le32(EXT3_FEATURE_COMPAT_HAS_JOURNAL)) + && (sb->s_flags & __cpu_to_le32(EXT2_FLAGS_TEST_FILESYS)) && (sb->s_feature_incompat - & __cpu_to_le32(EXT3_FEATURE_INCOMPAT_EXTENTS) + & __cpu_to_le32(EXT3_FE...
2006 Jan 25
1
EXT3: failed to claim external journal device.
We are having problems remounting an ext3 filesystem using an external journal device. The filesystem in question was working fine until the server was rebooted. This is what we see on dmesg when trying to mount: EXT3: failed to claim external journal device. The external journal lives on a LVM2 logical volume and it seems to be accessible ( we can dumpe2fs and see filesystem information).
2014 Jan 03
1
SSSD and usermod
...7e9000, 4096, PROT_READ) = 0 mprotect(0x7f96bfa07000, 4096, PROT_READ) = 0 mprotect(0x7f96bfc20000, 4096, PROT_READ) = 0 mprotect(0x7f96c005d000, 4096, PROT_READ) = 0 mprotect(0x7f96bfe45000, 4096, PROT_READ) = 0 munmap(0x7f96bfe3e000, 23522) = 0 statfs("/selinux", {f_type="EXT2_SUPER_MAGIC", f_bsize=4096, f_blocks=70642610, f_bfree=69858788, f_bavail=66270334, f_files=17948672, f_ffree=17645507, f_fsid={-1343244061, 2328842}, f_namelen=255, f_frsize=4096}) = 0 brk(0) = 0x7f96c1860000 brk(0x7f96c1881000) = 0x7f96c1881000 open(&...
2007 Aug 15
0
[git patch] fstype support + minor stuff
...ype.c @@ -107,6 +107,25 @@ static int minix_image(const void *buf, unsigned long long *bytes) return 0; } +static int ext4_image(const void *buf, unsigned long long *bytes) +{ + const struct ext3_super_block *sb = + (const struct ext3_super_block *)buf; + + if (sb->s_magic == __cpu_to_le16(EXT2_SUPER_MAGIC) + && (sb->s_feature_incompat + & __cpu_to_le32(EXT3_FEATURE_INCOMPAT_EXTENTS) + || sb->s_feature_incompat + & __cpu_to_le32(EXT4_FEATURE_INCOMPAT_64BIT) + || sb->s_feature_incompat + & __cpu_to_le32(EXT4_FEATURE_INCOMPAT_MMP))) { + *bytes = (unsigned long long)_...
2012 Sep 10
19
Initial support for sector size >512
This set of patches add some support for sector size >512. Currently it fixes extlinux, MBR for GPT and ext partitions. Other code is unaffected. This set of patches has been tested on a read Dell machine running a beta firmware.
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
2012 Sep 03
1
[GIT-PULL] XFS filesystem driver
...lock sb2; struct fat_boot_sector sb3; struct ntfs_boot_sector sb4; + xfs_sb_t sb5; bool ok = false; if (fs_type == EXT2) { @@ -335,6 +349,7 @@ int install_bootblock(int fd, const char *device) perror("reading superblock"); return 1; } + if (sb.s_magic == EXT2_SUPER_MAGIC) ok = true; } else if (fs_type == BTRFS) { @@ -350,6 +365,7 @@ int install_bootblock(int fd, const char *device) perror("reading fat superblock"); return 1; } + if (fat_check_sb_fields(&sb3)) ok = true; } else if (fs_type == NTFS) { @@ -360,12 +376,34 @@ int...
2013 Jul 31
29
[PATCH 0/9] tools: remove or disable old/useless/unused/unmainted stuff
depends on "autoconf: regenerate configure scripts with 4.4 version" This series removes some of the really old deadwood from the tools build and makes some other things which are on their way out configurable at build time with a default depending on how far down the slope I judge them to be. * nuke in tree copy of libaio * nuke obsolete tools: xsview, miniterm, lomount & sv *