16.11. ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥¹¥Ê¥Ã¥×¥·¥ç¥Ã¥È

´ó¹Æ: Tom Rhodes.

FreeBSD 5.0 ¤Ï Soft Updates ¤È¶¨Ä´¤¹¤ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¥¹¥Ê¥Ã¥×¥·¥ç¥Ã¥È¤È¤¤¤¦¿·¤·¤¤µ¡Ç½¤òÄ󶡤·¤Þ¤¹¡£

¥¹¥Ê¥Ã¥×¥·¥ç¥Ã¥È¤Ï»ØÄꤷ¤¿¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥¤¥á¡¼¥¸¤òºîÀ®¤·¡¢ ¤Þ¤¿¡¢¥Õ¥¡¥¤¥ë¤È¤·¤Æ°·¤¦¤³¤È¤¬¤Ç¤­¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£ ¥¹¥Ê¥Ã¥×¥·¥ç¥Ã¥È¥Õ¥¡¥¤¥ë¤Ï¥¢¥¯¥·¥ç¥ó¤¬¼Â¹Ô¤µ¤ì¤ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥àÆâ¤ÇºîÀ®¤µ¤ì¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£ ¤Þ¤¿¡¢¥æ¡¼¥¶¤Ï°ì¤Ä¤Î¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤¢¤¿¤ê 20 ¤Þ¤Ç¥¹¥Ê¥Ã¥×¥·¥ç¥Ã¥È¤òºîÀ®¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ Í­¸ú¤Ê¥¹¥Ê¥Ã¥×¥·¥ç¥Ã¥È¤Ï¥¹¡¼¥Ñ¡¼¥Ö¥í¥Ã¥¯Æâ¤Ëµ­Ï¿¤µ¤ì¤ë¤Î¤Ç¡¢ ¥ê¥Ö¡¼¥È¤·¤Æ¤«¤é±Ê³Ū¤Ë¥¢¥ó¥Þ¥¦¥ó¥È¤ª¤è¤Ó¥ê¥Þ¥¦¥ó¥È¤òµ­Ï¿¤·¤Þ¤¹¡£ ¥¹¥Ê¥Ã¥×¥·¥ç¥Ã¥È¤¬É¬Í×̵¤¯¤Ê¤Ã¤¿¤È¤­¤Ï¡¢ ɸ½à¤Î rm(1) ¥³¥Þ¥ó¥É¤òÍѤ¤¤Æºï½ü¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ ¥¹¥Ê¥Ã¥×¥·¥ç¥Ã¥È¤Ï¤É¤ó¤Ê½çÈ֤Ǻï½ü¤·¤Æ¤â¤è¤¤¤Î¤Ç¤¹¤¬¡¢ ¤½¤Î¾¤Î¥¹¥Ê¥Ã¥×¥·¥ç¥Ã¥È¤¬³«Êü¤µ¤ì¤¿¥Ö¥í¥Ã¥¯¤Î¤¦¤Á¤¤¤¯¤é¤«¤ò¤ª¤½¤é¤¯É¬ÍפȤ¹¤ë¤Î¤Ç¡¢ »ÈÍѤµ¤ì¤Æ¤¤¤¿¤¹¤Ù¤Æ¤Î¥¹¥Ú¡¼¥¹¤òÆÀ¤é¤ì¤ë¤È¤Ï¸Â¤ê¤Þ¤»¤ó¡£

½é¤á¤Æ¥¹¥Ê¥Ã¥×¥·¥ç¥Ã¥È¤òºîÀ®¤¹¤ë¤È¡¢root ¤Ç¤µ¤¨¤â½ñ¤­¹þ¤á¤Ê¤¤¤è¤¦¤Ë schg ¥Õ¥é¥° (chflags(1) ¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤ò»²¾È) ¤¬ÀßÄꤵ¤ì¤Þ¤¹¡£ unlink(1) ¥³¥Þ¥ó¥É¤Ï¡¢¥¹¥Ê¥Ã¥×¥·¥ç¥Ã¥È¤Ë schg ¥Õ¥é¥°¤¬ÀßÄꤵ¤ì¤Æ¤¤¤Æ¤â¤½¤ì¤é¤òºï½ü¤¹¤ë¤³¤È¤Î¤Ç¤­¤ëÎã³°¤Ç¤¹¡£ ¤·¤¿¤¬¤Ã¤Æ¡¢¥¹¥Ê¥Ã¥×¥·¥ç¥Ã¥È¥Õ¥¡¥¤¥ë¤òºï½ü¤¹¤ëÁ°¤Ë¡¢ schg ¥Õ¥é¥°¤ò¥¯¥ê¥¢¤¹¤ëɬÍפϤ¢¤ê¤Þ¤»¤ó¡£

¥¹¥Ê¥Ã¥×¥·¥ç¥Ã¥È¤Ï mount(8) ¥³¥Þ¥ó¥É¤òÍѤ¤¤ÆºîÀ®¤µ¤ì¤Þ¤¹¡£ /var ¤Î¥¹¥Ê¥Ã¥×¥·¥ç¥Ã¥È¤ò /var/snapshot/snap ¤ËºîÀ®¤·¤¿¤¤¤È¤­¤Ï¡¢ °Ê²¼¤Î¥³¥Þ¥ó¥É¤ò»ÈÍѤ·¤Þ¤¹¡£

# mount -u -o snapshot /var/snapshot/snap /var

¤Þ¤¿¡¢¥¹¥Ê¥Ã¥×¥·¥ç¥Ã¥È¤òºîÀ®¤¹¤ë¤Î¤Ë mksnap_ffs(8) ¤â»È¤¨¤Þ¤¹¡£

# mksnap_ffs /var /var/snapshot/snap

¥¹¥Ê¥Ã¥×¥·¥ç¥Ã¥È¤Ë¤Ï¤¤¤¯¤Ä¤«¤ÎÍøÍÑË¡¤¬¤¢¤ê¤Þ¤¹¡£

¤³¤ì¤Ç /mnt ¤Ë¥Þ¥¦¥ó¥È¤·¤¿ Åà·ë¾õÂ֤Π/var ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¹½Â¤¤òõº÷¤Ç¤­¤Þ¤¹¡£ ¤¹¤Ù¤Æ¤¬¥¹¥Ê¥Ã¥×¥·¥ç¥Ã¥È¤¬ºîÀ®¤µ¤ì¤¿»þ¤ÈƱ¤¸¾õÂ֤ˤʤë¤Ï¤º¤Ç¤¹¡£¤¿¤À¤·¡¢ °ÊÁ°¤ËºîÀ®¤µ¤ì¤¿¥¹¥Ê¥Ã¥×¥·¥ç¥Ã¥È¤¬¥µ¥¤¥º 0 ¤Î¥Õ¥¡¥¤¥ë¤È¤·¤Æ¸½¤ì¤ë¤³¤È¤¬Í£°ì¤ÎÎã³°¤Ç¤¹¡£ ¥¹¥Ê¥Ã¥×¥·¥ç¥Ã¥È¤Î»ÈÍѤò½ª¤¨¤¿¾ì¹ç¡¢°Ê²¼¤Î¤è¤¦¤Ë¥¢¥ó¥Þ¥¦¥ó¥È¤Ç¤­¤Þ¤¹¡£

# umount /mnt
# mdconfig -d -u 4

softupdates ¤ª¤è¤Ó¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¥¹¥Ê¥Ã¥×¥·¥ç¥Ã¥È¤Ë´Ø¤¹¤ë¾ÜºÙ¤Ë¤Ä¤¤¤Æ¤Ï¡¢ http://www.mckusick.com/ ¤Ë¤¢¤ë Marshall Kirk McKusick ¤Î¥¦¥§¥Ö¥µ¥¤¥È¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£ ¤³¤³¤Ë¤Ïµ»½ÑŪ¤ÊÏÀʸ¤â¤¢¤ê¤Þ¤¹¡£

ËÜʸ½ñ¡¢¤ª¤è¤Ó¾¤Îʸ½ñ¤Ï ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/ ¤«¤é¥À¥¦¥ó¥í¡¼¥É¤Ç¤­¤Þ¤¹¡£

FreeBSD ¤Ë´Ø¤¹¤ë¼ÁÌ䤬¤¢¤ë¾ì¹ç¤Ë¤Ï¡¢¥É¥­¥å¥á¥ó¥È ¤òÆɤó¤À¾å¤Ç <questions@FreeBSD.org> ¤Þ¤Ç (±Ñ¸ì¤Ç) Ï¢Íí¤·¤Æ¤¯¤À¤µ¤¤¡£
ËÜʸ½ñ¤Ë´Ø¤¹¤ë¼ÁÌä¤Ë¤Ä¤¤¤Æ¤Ï¡¢<doc@FreeBSD.org> ¤Þ¤ÇÅŻҥ᡼¥ë¤ò (±Ñ¸ì¤Ç) Á÷¤Ã¤Æ¤¯¤À¤µ¤¤¡£