summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Black <dragonheart@gentoo.org>2006-12-22 08:06:35 +0000
committerDaniel Black <dragonheart@gentoo.org>2006-12-22 08:06:35 +0000
commit7a16d1ca282fa661758aa5e0b975db6e9a76421b (patch)
tree1d13b6fbaec67169300a0b5bac6eb51bddbbe937 /sys-fs/cowloop/files
parentUse mirror:// in SRC_URI and remove older version. (diff)
downloadgentoo-2-7a16d1ca282fa661758aa5e0b975db6e9a76421b.tar.gz
gentoo-2-7a16d1ca282fa661758aa5e0b975db6e9a76421b.tar.bz2
gentoo-2-7a16d1ca282fa661758aa5e0b975db6e9a76421b.zip
vfs_statfs fix thanks to the watchful eye of upstream maintainer
H.J. Thomassen (Portage version: 2.1.2_rc3-r9)
Diffstat (limited to 'sys-fs/cowloop/files')
-rw-r--r--sys-fs/cowloop/files/cowloop-3.0-vfs_statfs.patch34
-rw-r--r--sys-fs/cowloop/files/digest-cowloop-3.0-r13
2 files changed, 37 insertions, 0 deletions
diff --git a/sys-fs/cowloop/files/cowloop-3.0-vfs_statfs.patch b/sys-fs/cowloop/files/cowloop-3.0-vfs_statfs.patch
new file mode 100644
index 000000000000..d982f5e8b6ac
--- /dev/null
+++ b/sys-fs/cowloop/files/cowloop-3.0-vfs_statfs.patch
@@ -0,0 +1,34 @@
+--- cowloop-3.0/src/cowloop.c.orig 2006-12-22 18:28:09.000000000 +1100
++++ cowloop-3.0/src/cowloop.c 2006-12-22 18:31:13.000000000 +1100
+@@ -238,6 +238,7 @@
+ #include <linux/config.h>
+ #endif
+ #include <linux/module.h>
++#include <linux/version.h>
+ #include <linux/moduleparam.h>
+ #include <linux/init.h>
+ #include <linux/errno.h>
+@@ -1507,7 +1508,11 @@
+ cowdev->cowwrites % SPCDFLINTVL == 0 ) {
+ struct kstatfs ks;
+
++#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18))
+ if (vfs_statfs(cowdev->cowfp->f_dentry->d_inode->i_sb, &ks)==0){
++#else
++ if (vfs_statfs(cowdev->cowfp->f_dentry, &ks)==0){
++#endif
+ if (ks.f_bavail <= SPCMINBLK) {
+ switch (ks.f_bavail) {
+ case 0:
+@@ -1814,7 +1819,11 @@
+ /*
+ ** administer total and available size of filesystem holding cowfile
+ */
++#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18))
+ if (vfs_statfs(cowdev->cowfp->f_dentry->d_inode->i_sb, &ks) == 0) {
++#else
++ if (vfs_statfs(cowdev->cowfp->f_dentry, &ks) == 0) {
++#endif
+ cowdev->blksize = ks.f_bsize;
+ cowdev->blktotal = ks.f_blocks;
+ cowdev->blkavail = ks.f_bavail;
diff --git a/sys-fs/cowloop/files/digest-cowloop-3.0-r1 b/sys-fs/cowloop/files/digest-cowloop-3.0-r1
new file mode 100644
index 000000000000..2a22368ef4af
--- /dev/null
+++ b/sys-fs/cowloop/files/digest-cowloop-3.0-r1
@@ -0,0 +1,3 @@
+MD5 da951eed8952bd05b8b372ed8a59b2e6 cowloop-3.0.tar.gz 129034
+RMD160 10614214e43be983df652c941dcab74f76bc076e cowloop-3.0.tar.gz 129034
+SHA256 bf71e90c216f862ece4a48401fa5517cfcc91267e8648e30524ed2b9097489ce cowloop-3.0.tar.gz 129034