Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lustre-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
debian-packages
lustre-release
Commits
59e7897e
Commit
59e7897e
authored
20 years ago
by
Wang Di
Browse files
Options
Downloads
Patches
Plain Diff
add ext3_snapfs_exports-2.4.24.patch
parent
fcaad011
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lustre/kernel_patches/patches/ext3_snapfs_exports-2.4.24.patch
+75
-0
75 additions, 0 deletions
...e/kernel_patches/patches/ext3_snapfs_exports-2.4.24.patch
with
75 additions
and
0 deletions
lustre/kernel_patches/patches/ext3_snapfs_exports-2.4.24.patch
0 → 100644
+
75
−
0
View file @
59e7897e
Index: linux-2.4.24/include/linux/ext3_fs.h
===================================================================
--- linux-2.4.24.orig/include/linux/ext3_fs.h 2004-07-04 20:23:10.000000000 +0800
+++ linux-2.4.24/include/linux/ext3_fs.h 2004-07-04 20:23:15.000000000 +0800
@@ -446,7 +446,8 @@
__u8 s_reserved_char_pad;
__u16 s_reserved_word_pad;
__u32 s_mdsnum;
- __u32 s_reserved[191]; /* Padding to the end of the block */
+ __u32 s_snaptable_ino; /*snaptable ino*/
+ __u32 s_reserved[190]; /* Padding to the end of the block */
};
#ifdef __KERNEL__
@@ -799,7 +800,8 @@
extern void ext3_ext_init(struct super_block *);
extern void ext3_ext_release(struct super_block *);
extern void ext3_extents_initialize_blockmap(handle_t *, struct inode *);
-
+extern int ext3_bmap(struct address_space *mapping, long block);
+extern int ext3_load_inode_bitmap (struct super_block * sb, unsigned int block_group);
#endif /* __KERNEL__ */
#define EXT3_IOC_CREATE_INUM _IOW('f', 5, long)
Index: linux-2.4.24/fs/ext3/inode.c
===================================================================
--- linux-2.4.24.orig/fs/ext3/inode.c 2004-07-04 20:23:09.000000000 +0800
+++ linux-2.4.24/fs/ext3/inode.c 2004-07-04 20:23:15.000000000 +0800
@@ -1200,7 +1200,7 @@
* So, if we see any bmap calls here on a modified, data-journaled file,
* take extra steps to flush any blocks which might be in the cache.
*/
-static int ext3_bmap(struct address_space *mapping, long block)
+int ext3_bmap(struct address_space *mapping, long block)
{
struct inode *inode = mapping->host;
journal_t *journal;
Index: linux-2.4.24/fs/ext3/ext3-exports.c
===================================================================
--- linux-2.4.24.orig/fs/ext3/ext3-exports.c 2004-07-04 20:23:10.000000000 +0800
+++ linux-2.4.24/fs/ext3/ext3-exports.c 2004-07-04 21:11:42.000000000 +0800
@@ -26,6 +26,15 @@
EXPORT_SYMBOL(ext3_decode_error);
EXPORT_SYMBOL(__ext3_std_error);
+EXPORT_SYMBOL(ext3_bmap);
+EXPORT_SYMBOL(ext3_new_inode);
+EXPORT_SYMBOL(ext3_load_inode_bitmap);
+EXPORT_SYMBOL(ext3_orphan_add);
+EXPORT_SYMBOL(ext3_orphan_del);
+EXPORT_SYMBOL(ext3_discard_prealloc);
+EXPORT_SYMBOL(ext3_get_group_desc);
+EXPORT_SYMBOL(ext3_getblk);
+
int ext3_add_dir_entry (struct dentry *dentry);
EXPORT_SYMBOL(ext3_add_dir_entry);
int ext3_del_dir_entry(struct dentry *dentry);
Index: linux-2.4.24/fs/ext3/ialloc.c
===================================================================
--- linux-2.4.24.orig/fs/ext3/ialloc.c 2004-07-04 20:23:09.000000000 +0800
+++ linux-2.4.24/fs/ext3/ialloc.c 2004-07-04 20:23:15.000000000 +0800
@@ -79,6 +79,13 @@
return retval;
}
+/* Export load_inode_bitmap*/
+int ext3_load_inode_bitmap (struct super_block * sb,
+ unsigned int block_group)
+{
+ return load_inode_bitmap(sb, block_group);
+}
+
/*
* load_inode_bitmap loads the inode bitmap for a blocks group
*
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment