|
|||||||
|
|
MOUNTSection: Linux Programmer's Manual (2)Updated: 1994-11-28 Index Return to Main Contents ̾Á°mount, umount - ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò¥Þ¥¦¥ó¥È/¥¢¥ó¥Þ¥¦¥ó¥È¤¹¤ë½ñ¼°#include <sys/mount.h>int mount(const char *specialfile, const char * dir , const char * filesystemtype, unsigned long mountflags , const void * data); ÀâÌÀmount ¤Ï specialfile ¤Ç»ØÄꤵ¤ì¤¿¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à(¥Ç¥Ð¥¤¥¹Ì¾¤Ç¤¢¤ë¤³¤È¤¬Â¿¤¤)¤ò dir ¤Ç»ØÄꤵ¤ì¤¿¥Ç¥£¥ì¥¯¥È¥ê¤Ë·ë¤Ó¤Ä¤±¤ë¡£umount ¤Ï dir ¤Ç»ØÄꤵ¤ì¤¿¡¢´û¤Ë·ë¤Ó¤Ä¤±¤é¤ì¤Æ¤¤¤ë(ºÇ¾å°Ì¤Î)¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò³°¤¹¡£ ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥Þ¥¦¥ó¥È/¥¢¥ó¥Þ¥¦¥ó¥È¤¬¤Ç¤¤ë¤Î¤Ï¥¹¡¼¥Ñ¡¼¥æ¡¼¥¶¡¼ ¤À¤±¤Ç¤¢¤ë¡£ °ú¿ô filesystemtype ¤Ï /proc/filesystems Ãæ¤Ë¤¢¤²¤é¤ì¤Æ¤¤¤ëÃͤΰì¤Ä(Î㤨¤Ð "minix", "ext2", "msdos", "proc", "nfs", "iso9660" Åù)¤ò»ØÄꤹ¤ë¡£ °ú¿ô mountflags ¤ÏÀèÆ¬ 16 ¥Ó¥Ã¥È¤¬¥Þ¥¸¥Ã¥¯¥Ê¥ó¥Ð¡¼ 0xC0ED ¤Ç¤¢¤ê¡¢»Ä¤ê¤Î 16 ¥Ó¥Ã¥È¤Ï ¥Þ¥¦¥ó¥È¥Õ¥é¥° (libc4 ¤ª¤è¤Ó libc5 ¤Ç¤Ï <linux/fs.h> ¤Ç¡¢glibc2 ¤Ç¤Ï <sys/mount.h> ¤Ç°Ê²¼¤Î¤è¤¦¤ËÄêµÁ¤µ¤ì¤Æ¤¤¤ë) ¤Ç¤¢¤ë¡£ #define MS_RDONLY 1 /* mount read-only */ #define MS_NOSUID 2 /* ignore suid and sgid bits */ #define MS_NODEV 4 /* no access to device special files */ #define MS_NOEXEC 8 /* no program execution */ #define MS_SYNCHRONOUS 16 /* writes are synced at once */ #define MS_REMOUNT 32 /* alter flags of a mounted fs */ #define MS_MANDLOCK 64 /* allow mandatory locks */ #define MS_NOATIME 1024 /* do not update access times */ #define MS_NODIRATIME 2048 /* do not update dir access times */ #define MS_BIND 4096 /* bind subtree elsewhere */ °ú¿ô data ¤ÏÊ̤Υե¡¥¤¥ë¥·¥¹¥Æ¥à¤Ë¤è¤Ã¤Æ²ò¼á¤µ¤ì¤ë¡£ ÊÖ¤êÃÍÀ®¸ù¤·¤¿¾ì¹ç 0 ¤¬Ê֤롣¼ºÇÔ¤·¤¿¾ì¹ç -1 ¤¬Ê֤ꡢ errno ¤¬¥¨¥é¡¼¤ÎÆâÍÆ¤Ë½¾¤Ã¤ÆÀßÄꤵ¤ì¤ë¡£¥¨¥é¡¼¥¨¥é¡¼¤ÎÃͤϥե¡¥¤¥ë¥·¥¹¥Æ¥à¥¿¥¤¥×¤Ë°Í¸¤·¤Æ°Ê²¼¤Ë¼¨¤¹¤è¤¦¤Ë¤Ê¤ë¡£ ¤½¤ì¤¾¤ì¤Î¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¥¿¥¤¥×¤Ë¤Ï¸ÇͤΥ¨¥é¡¼¤¬Â¸ºß¤¹¤ë¾ì¹ç¤¬¤¢¤ê¡¢ ¤Þ¤¿¤½¤ìÆÈ¼«¤Îưºî¤ò¤¹¤ë¤³¤È¤â¤¢¤ë¡£¾Ü¤·¤¯¤Ï¥«¡¼¥Í¥ë¤Î¥½¡¼¥¹¤ò¸«¤ÆÍߤ·¤¤¡£
½àµò¤³¤Î´Ø¿ô¤Ï Linux ÆÃͤδؿô¤Ç¤¢¤ê¡¢°Ü¿¢À¤ò»ý¤¿¤»¤¿¤¤¥×¥í¥°¥é¥à¤Ë¤Ï »ÈÍѤ¹¤Ù¤¤Ç¤Ê¤¤¡£Îò»ËºÇ½é¤Î umount ´Ø¿ô¤Ï umount(device) ¤Î·Á¤Ç¸Æ¤Ó½Ð¤µ¤ì¡¢ ¥Ö¥í¥Ã¥¯¥Ç¥Ð¥¤¥¹°Ê³°¤ò»ØÄꤷ¤Æ¸Æ¤Ó½Ð¤¹¤È ENOTBLK ¤òÊÖ¤·¤¿¡£ Linux 0.98p4 ¤Ç¡¢ÍÍ¡¹¤Ê¥Ç¥Ð¥¤¥¹¤ËÂбþ¤¹¤ë¤¿¤á¤Ë umount(dir) ¸Æ¤Ó½Ð¤·¤¬²Ã¤¨¤é¤ì¤¿¡£ Linux 2.3.99-pre7 ¤Ç¡¢umount(device) ¤Ïºï½ü¤µ¤ì¡¢ umount(dir) ¤À¤±¤¬»Ä¤µ¤ì¤¿¡£ (°ì¤Ä¤Î¥Ç¥Ð¥¤¥¹¤òÊ£¿ô¤Î°ÌÃ֤˥ޥ¦¥ó¥È½ÐÍè¤ë¤è¤¦¤Ë¤Ê¤Ã¤¿¤¿¤á¡¢ ¥Ç¥Ð¥¤¥¹¤ò»ØÄꤷ¤¿¤À¤±¤Ç¤ÏÉÔ½½Ê¬¤À¤«¤é¤Ç¤¢¤ë)¸µ¤Î MS_SYNC ¥Õ¥é¥°¤Ï¡¢Ê̤ΠMS_SYNC ¤¬ <mman.h> ¤ËÄɲ䵤줿¤Î¤Ç 1.1.69 ¤«¤é MS_SYNCHRONOUS ¤Ë̾Á°¤¬ÊѤï¤Ã¤¿¡£ ´ØÏ¢¹àÌÜmount(8), umount(8)
Index | ||||||
|
|
|
Home :: Copyright :: Privacy :: Credits :: Get a free Linuxinfor Email Account Document on this page is part of "Linuxinfor Man Pages in HTML Format: man2". See Index Page for more info about Authorship and Copyright. 1999-2008 Linuxinfor.com. No rights reserved. |