SOURCES: shfs-get_sb.patch (NEW) - patch for kernel >= 2.6.18 only
mwinkler
mwinkler at pld-linux.org
Tue Sep 26 10:49:36 CEST 2006
Author: mwinkler Date: Tue Sep 26 08:49:36 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- patch for kernel >= 2.6.18 only
---- Files affected:
SOURCES:
shfs-get_sb.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/shfs-get_sb.patch
diff -u /dev/null SOURCES/shfs-get_sb.patch:1.1
--- /dev/null Tue Sep 26 10:49:36 2006
+++ SOURCES/shfs-get_sb.patch Tue Sep 26 10:49:31 2006
@@ -0,0 +1,39 @@
+--- shfs-0.35/shfs/Linux-2.6/inode.c 2006-09-03 21:45:45.000000000 +0900
++++ shfs-0.35-new/shfs/Linux-2.6/inode.c 2006-09-03 21:47:53.000000000 +0900
+@@ -343,9 +343,9 @@
+
+ static struct super_block *
+ shfs_get_sb(struct file_system_type *fs_type,
+- int flags, const char *dev_name, void *data)
++ int flags, const char *dev_name, void *data, struct vfsmount *mnt)
+ {
+- return get_sb_nodev(fs_type, flags, data, shfs_read_super);
++ return get_sb_nodev(fs_type, flags, data, shfs_read_super, mnt);
+ }
+
+ static struct file_system_type sh_fs_type = {
+--- shfs-0.35/shfs/Linux-2.6/proc.c 2004-06-01 22:16:19.000000000 +0900
++++ shfs-0.35-new/shfs/Linux-2.6/proc.c 2006-09-03 21:48:59.000000000 +0900
+@@ -571,9 +571,9 @@
+ }
+
+ int
+-shfs_statfs(struct super_block *sb, struct kstatfs *attr)
++shfs_statfs(struct dentry *dentry, struct kstatfs *attr)
+ {
+- struct shfs_sb_info *info = info_from_sb(sb);
++ struct shfs_sb_info *info = info_from_dentry(dentry);
+
+ DEBUG("\n");
+ return info->fops.statfs(info, attr);
+--- shfs-0.35/shfs/Linux-2.6/shfs_fs.h 2006-09-03 21:45:45.000000000 +0900
++++ shfs-0.35-new/shfs/Linux-2.6/shfs_fs.h 2006-09-03 20:53:29.000000000 +0900
+@@ -100,7 +100,7 @@
+ void set_garbage(struct shfs_sb_info *info, int write, int count);
+ int get_name(struct dentry *d, char *name);
+ int shfs_notify_change(struct dentry *dentry, struct iattr *attr);
+-int shfs_statfs(struct super_block *sb, struct kstatfs *attr);
++int shfs_statfs(struct dentry *dentry, struct kstatfs *attr);
+
+ /* shfs/inode.c */
+ void shfs_set_inode_attr(struct inode *inode, struct shfs_fattr *fattr);
================================================================
More information about the pld-cvs-commit
mailing list