SOURCES: shfs-2.6.19.patch, shfs-shfs_get_sb.patch - api adaptations

zbyniu zbyniu at pld-linux.org
Mon Apr 14 02:11:09 CEST 2008


Author: zbyniu                       Date: Mon Apr 14 00:11:09 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- api adaptations

---- Files affected:
SOURCES:
   shfs-2.6.19.patch (1.1 -> 1.2) , shfs-shfs_get_sb.patch (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SOURCES/shfs-2.6.19.patch
diff -u SOURCES/shfs-2.6.19.patch:1.1 SOURCES/shfs-2.6.19.patch:1.2
--- SOURCES/shfs-2.6.19.patch:1.1	Thu Mar 29 00:58:22 2007
+++ SOURCES/shfs-2.6.19.patch	Mon Apr 14 02:11:03 2008
@@ -365,6 +365,22 @@
  		SIGLOCK(flags);
  		if (result == -EPIPE && !sigpipe) {
  			sigdelset(&current->pending.signal, SIGPIPE);
+@@ -621,9 +621,15 @@ error:
+ }
+ 
+ int
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19))
++shfs_statfs(struct dentry *dentry, struct kstatfs *attr)
++{
++	struct shfs_sb_info *info = info_from_sb(dentry->d_sb);
++#else
+ shfs_statfs(struct super_block *sb, struct kstatfs *attr)
+ {
+ 	struct shfs_sb_info *info = info_from_sb(sb);
++#endif
+ 
+ 	DEBUG("\n");
+ 	return info->fops.statfs(info, attr); 
 --- shfs-0.35/shfs/Linux-2.6/shfs.h~	2004-06-01 13:16:19.000000000 +0000
 +++ shfs-0.35/shfs/Linux-2.6/shfs.h	2007-03-28 17:31:34.271161000 +0000
 @@ -23,6 +23,7 @@
@@ -375,3 +391,17 @@
  
  struct shfs_fattr {
  	unsigned long 	f_ino;
+--- shfs-0.35/shfs/Linux-2.6/shfs_fs.h~   2008-04-14 01:30:03.437923642 +0200
++++ shfs-0.35/shfs/Linux-2.6/shfs_fs.h    2008-04-14 01:33:19.924419671 +0200
+@@ -100,7 +100,11 @@ int reply(char *s);
+ 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);
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19))
++int shfs_statfs(struct dentry *dentry, struct kstatfs *attr);
++#else
+ int shfs_statfs(struct super_block *sb, struct kstatfs *attr);
++#endif
+ 	
+ /* shfs/inode.c */
+ void shfs_set_inode_attr(struct inode *inode, struct shfs_fattr *fattr);

================================================================
Index: SOURCES/shfs-shfs_get_sb.patch
diff -u SOURCES/shfs-shfs_get_sb.patch:1.1 SOURCES/shfs-shfs_get_sb.patch:1.2
--- SOURCES/shfs-shfs_get_sb.patch:1.1	Sun Dec 10 13:07:13 2006
+++ SOURCES/shfs-shfs_get_sb.patch	Mon Apr 14 02:11:04 2008
@@ -12,7 +12,7 @@
  	return get_sb_nodev(fs_type, flags, data, shfs_read_super);
  }
 +#else
-+static struct super_block *
++static int
 +shfs_get_sb(struct file_system_type *fs_type,
 +	    int flags, const char *dev_name, void *data,
 +	    struct vfsmount *mnt)
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/shfs-2.6.19.patch?r1=1.1&r2=1.2&f=u
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/shfs-shfs_get_sb.patch?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list