* [gentoo-commits] gentoo-x86 commit in sys-fs/cowloop/files: cowloop-3.0-kern-2.6.23.patch
@ 2008-04-01 14:39 99% Daniel Black (dragonheart)
0 siblings, 0 replies; 1+ results
From: Daniel Black (dragonheart) @ 2008-04-01 14:39 UTC (permalink / raw
To: gentoo-commits
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=utf8, Size: 1340 bytes --]
dragonheart 08/04/01 14:39:23
Added: cowloop-3.0-kern-2.6.23.patch
Log:
introduced 2.6.23+ compatibility as per bug #208059. Patches by Jouni Kosonen and bug written by Jérôme Poulin
(Portage version: 2.1.4.4)
Revision Changes Path
1.1 sys-fs/cowloop/files/cowloop-3.0-kern-2.6.23.patch
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/cowloop/files/cowloop-3.0-kern-2.6.23.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/cowloop/files/cowloop-3.0-kern-2.6.23.patch?rev=1.1&content-type=text/plain
Index: cowloop-3.0-kern-2.6.23.patch
===================================================================
--- cowloop-3.0/src/cowloop.c.orig 2006-12-22 18:31:13.000000000 +1100
+++ cowloop-3.0/src/cowloop.c 2008-01-30 00:03:55.000000000 +0200
@@ -2816,9 +2816,13 @@
for (minor=0; minor < maxcows; minor++)
(void) cowlo_closepair(cowdevall[minor]);
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23))
if (unregister_blkdev(COWMAJOR, DEVICE_NAME) != 0)
printk(KERN_WARNING "cowloop - cannot unregister blkdev\n");
+#else
+ unregister_blkdev(COWMAJOR, DEVICE_NAME);
+#endif
/*
** get rid of /proc/cow and unregister the driver
*/
--
gentoo-commits@lists.gentoo.org mailing list
^ permalink raw reply [relevance 99%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2008-04-01 14:39 99% [gentoo-commits] gentoo-x86 commit in sys-fs/cowloop/files: cowloop-3.0-kern-2.6.23.patch Daniel Black (dragonheart)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox