lkml.org 
[lkml]   [2000]   [Feb]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subjectmm/swapfile.c patch...
But it just seemed _so_ appropriate...


~aaron
--- swapfile.c.orig Tue Feb 8 01:18:44 2000
+++ swapfile.c Tue Feb 8 01:28:16 2000
@@ -546,6 +546,10 @@
(blk_size[MAJOR(p->swap_device)] &&
!blk_size[MAJOR(p->swap_device)][MINOR(p->swap_device)]))
goto bad_swap;
+
+ if (MAJOR(p->swap_device) == RAMDISK_MAJOR)
+ printk("sys_swapon(): swapping to a ramdisk? you sicko!\n");
+
error = -EBUSY;
for (i = 0 ; i < nr_swapfiles ; i++) {
if (i == type)
\
 
 \ /
  Last update: 2005-03-22 13:56    [W:0.037 / U:0.744 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site