Displaying 5 results from an estimated 5 matches for "ext2_fs_init".
2013 Nov 21
0
[PATCH] FSUUID for ext2 filesystem
...| 40 +++++++++++++++++++++++++++++++++++++++-
core/fs/ext2/ext2_fs.h | 1 +
2 files changed, 40 insertions(+), 1 deletion(-)
diff --git a/core/fs/ext2/ext2.c b/core/fs/ext2/ext2.c
index df0856f..76bd1d5 100644
--- a/core/fs/ext2/ext2.c
+++ b/core/fs/ext2/ext2.c
@@ -312,6 +312,9 @@ static int ext2_fs_init(struct fs_info *fs)
sbi->s_first_data_block = sb.s_first_data_block;
sbi->s_inode_size = sb.s_inode_size;
+ /* Volume UUID */
+ memcpy(sbi->s_uuid, sb.s_uuid, sizeof(sbi->s_uuid));
+
/* Initialize the cache, and force block zero to all zero */
cache_init(fs-&...
2017 Aug 27
1
[PATCH] ext4: Fix 64bit feature
...p + sbi->s_desc_size * desc_index;
+}
+
+/*
+ * get the group's descriptor of group_num
+ */
+static inline const struct ext2_group_desc *
+ext2_get_group_desc(struct fs_info *fs, uint32_t group_num)
+{
+ return __ext2_get_group_desc(fs, group_num);
}
/*
@@ -306,6 +310,7 @@ static int ext2_fs_init(struct fs_info *fs)
if (sb.s_desc_size < sizeof(struct ext2_group_desc))
sb.s_desc_size = sizeof(struct ext2_group_desc);
sbi->s_desc_per_block = BLOCK_SIZE(fs) / sb.s_desc_size;
+ sbi->s_desc_size = sb.s_desc_size;
sbi->s_groups_count = (sb.s_blocks_count - sb...
2012 Aug 02
0
[PATCH 3/3] ALPHA: implement and use rdwr_bytes
...or_size;
}
+ if (hard_max_transfer > (0x10000/sector_size))
+ hard_max_transfer = (0x10000/sector_size);
}
}
diff --git a/core/fs/ext2/ext2.c b/core/fs/ext2/ext2.c
index 716670c..bddde8d 100644
--- a/core/fs/ext2/ext2.c
+++ b/core/fs/ext2/ext2.c
@@ -274,7 +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/c...
2013 Mar 02
0
[GIT-PULL] ext4 inline data support
...ile(struct inode *inode, void *buf, size_t bytes)
return 0;
}
-
+
static int ext2_readlink(struct inode *inode, char *buf)
{
struct fs_info *fs = inode->fs;
@@ -326,7 +348,7 @@ const struct fs_ops ext2_fs_ops = {
.fs_flags = FS_THISIND | FS_USEMEM,
.fs_init = ext2_fs_init,
.searchdir = NULL,
- .getfssec = generic_getfssec,
+ .getfssec = ext2_getfssec,
.close_file = generic_close_file,
.mangle_name = generic_mangle_name,
.load_config = generic_load_config,
diff --git a/core/fs/ext2/ext2_fs.h b/core/fs/ext2/ext2_fs.h
inde...
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.