search for: ext2_sb

Displaying 7 results from an estimated 7 matches for "ext2_sb".

Did you mean: ext2_fs
2013 Nov 21
0
[PATCH] FSUUID for ext2 filesystem
...1) +static char *ext2_fs_uuid(struct fs_info *fs) +{ + char *uuid = NULL; + + uuid = malloc(EXT2_UUID_LEN); + if (!uuid) + return NULL; + + if (snprintf(uuid, EXT2_UUID_LEN, + "%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x", + EXT2_SB(fs)->s_uuid[0], + EXT2_SB(fs)->s_uuid[1], + EXT2_SB(fs)->s_uuid[2], + EXT2_SB(fs)->s_uuid[3], + EXT2_SB(fs)->s_uuid[4], + EXT2_SB(fs)->s_uuid[5], + EXT2_SB(fs)->s_uuid[6], + EXT2_SB(fs)->s_uuid[7], +...
2005 Oct 31
2
What is the history of CONFIG_EXT{2,3}_CHECK?
Can anyone tell me the history of CONFIG_EXT{2,3}_CHECK? There is code for a "check" option for mount if these options are enabled, but there's no way to enable them. TIA Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said.
2008 Nov 24
2
ext2 inode size patch - RE: PR kern/124621
A while back, I submitted a patch for PR kern/124621, which allows the mounting of an ext2(3) filesystem created with an inode size other than 128. The e2fsprogs' default is now 256, so file systems created on newer Linux distributions or with the port will not be mountable. I was hopeful this would get committed in time for 7.1-RELEASE (and 6.4-RELEASE), however the PR remains open. If
2012 Aug 02
2
[PATCH] add additional checks to ext2 loader
...t2.c +++ b/core/fs/ext2/ext2.c @@ -139,6 +139,8 @@ ext2_get_inode(struct fs_info *fs, int inr) block_off = inode_offset % EXT2_INODES_PER_BLOCK(fs); data = get_cache(fs->fs_dev, block_num); + if (!data) + return NULL; return (const struct ext2_inode *) (data + block_off * EXT2_SB(fs)->s_inode_size); @@ -164,7 +166,7 @@ static struct inode *ext2_iget_by_inr(struct fs_info *fs, uint32_t inr) struct inode *inode; e_inode = ext2_get_inode(fs, inr); - if (!(inode = alloc_inode(fs, inr, sizeof(struct ext2_pvt_inode)))) + if (!e_inode || !(inode = alloc_inode(...
2017 Aug 27
1
[PATCH] ext4: Fix 64bit feature
..._type) return inode_type[d_file_type]; } -/* - * get the group's descriptor of group_num - */ -static const struct ext2_group_desc * -ext2_get_group_desc(struct fs_info *fs, uint32_t group_num) +static const void *__ext2_get_group_desc(struct fs_info *fs, uint32_t group_num) { struct ext2_sb_info *sbi = EXT2_SB(fs); uint32_t desc_block, desc_index; - const struct ext2_group_desc *desc_data_block; + uint8_t *p; if (group_num >= sbi->s_groups_count) { printf ("ext2_get_group_desc" "block_group >= groups_count - " "block_group =...
2013 Mar 02
0
[GIT-PULL] ext4 inline data support
...t;ext2_fs.h" @@ -66,7 +67,6 @@ static inline bool ext2_match_entry(const char *name, size_t len, return !memcmp(name, de->d_name, len); } - /* * p is at least 6 bytes before the end of page */ @@ -144,7 +144,7 @@ ext2_get_inode(struct fs_info *fs, int inr) (data + block_off * EXT2_SB(fs)->s_inode_size); } -static void fill_inode(struct inode *inode, const struct ext2_inode *e_inode) +static void fill_inode(struct inode *inode, const struct ext2_inode *e_inode, uint32_t inr) { inode->mode = IFTODT(e_inode->i_mode); inode->size = e_inode->i_size...
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).