/usr/share/doc/HOWTO/ja-html/Root-RAID-HOWTO-12.html is in doc-linux-ja-html 2006.05.25-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.21">
<TITLE>Root RAID HOWTO cookbook: $BIUO?(B E: Gadi $B;a$N(B RAID $BDd;_$K4X$9$k(BLinux $B%+!<%M%k%Q%C%A(B </TITLE>
<LINK HREF="Root-RAID-HOWTO-13.html" REL=next>
<LINK HREF="Root-RAID-HOWTO-11.html" REL=previous>
<LINK HREF="Root-RAID-HOWTO.html#toc12" REL=contents>
</HEAD>
<BODY>
<A HREF="Root-RAID-HOWTO-13.html">$B<!$N%Z!<%8(B</A>
<A HREF="Root-RAID-HOWTO-11.html">$BA0$N%Z!<%8(B</A>
<A HREF="Root-RAID-HOWTO.html#toc12">$BL\<!$X(B</A>
<HR>
<H2><A NAME="Appendix-E"></A> <A NAME="s12">12.</A> <A HREF="Root-RAID-HOWTO.html#toc12">$BIUO?(B E: Gadi $B;a$N(B RAID $BDd;_$K4X$9$k(BLinux $B%+!<%M%k%Q%C%A(B </A></H2>
<P>
<PRE>
--- linux/drivers/block/md.c.old Fri Nov 21 13:37:11 1997
+++ linux/drivers/block/md.c Sat Dec 6 13:34:28 1997
@@ -622,8 +622,13 @@
return do_md_run (minor, (int) arg);
case STOP_MD:
- return do_md_stop (minor, inode);
-
+ err = do_md_stop(minor, inode);
+ if (err) {
+ printk("md: enabling auto mdstop for %s\n",
kdevname(inode->i_rdev));
+ md_dev[minor].auto_mdstop = 1;
+ }
+ return err;
+
case BLKGETSIZE: /* Return device size */
if (!arg) return -EINVAL;
err=verify_area (VERIFY_WRITE, (long *) arg, sizeof(long));
@@ -692,6 +697,10 @@
sync_dev (inode->i_rdev);
md_dev[minor].busy--;
+ if (!md_dev[minor].busy && md_dev[minor].auto_mdstop) {
+ do_md_stop(minor, inode);
+ md_dev[minor].auto_mdstop = 0;
+ }
}
static int md_read (struct inode *inode, struct file *file,
--- linux/include/linux/md.h~ Fri Nov 21 13:29:14 1997
+++ linux/include/linux/md.h Fri Nov 21 13:29:14 1997
@@ -260,6 +260,7 @@
int repartition;
int busy;
int nb_dev;
+ int auto_mdstop;
void *private;
};
</PRE>
</P>
<HR>
<A HREF="Root-RAID-HOWTO-13.html">$B<!$N%Z!<%8(B</A>
<A HREF="Root-RAID-HOWTO-11.html">$BA0$N%Z!<%8(B</A>
<A HREF="Root-RAID-HOWTO.html#toc12">$BL\<!$X(B</A>
</BODY>
</HTML>
|