GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
GETVFSENT(3) FreeBSD Library Functions Manual GETVFSENT(3)

getvfsent, setvfsent, endvfsent, vfsisloadable, vfsload
???ۥե????륷???ƥ??⥸?塼????????

Standard C Library (libc, -lc)

<sys/param.h> <sys/mount.h> struct ovfsconf * getvfsent(void) void setvfsent(int cachelist) void endvfsent(void) int vfsisloadable(const char *name) int vfsload(const char *name)

getvfsent() ?ؿ??ˤ??äơ??????ͥ뤬???????륤?󥹥ȡ????Ѥβ??ۥե????륷???ƥ??⥸?塼?? ?Υꥹ?Ȥˡ???ñ?˥????????Ǥ??ޤ????ꥹ?ȤΥե????륷???ƥ??? 1 ???? 1 ?ĤŤ??ʳ?Ū?˽??????ޤ??????ѤǤ????ǡ??????????ʾ??ʤ??ʤ??ȡ? ?̥? ?ݥ??󥿤??֤??ޤ?????¤?? “struct ovfsconf” ?Υե??????ɤϼ??ΤȤ????Ǥ???

vfc_name
?ե????륷???ƥ???̾????
vfc_index
?????ͥ??ˤ??äƳ??????Ƥ??? mount(2) ?θƤӽФ??˻??Ѥ??줿???ե????륷???ƥ??Υ??????ֹ档
vfc_refcount
???Υե????륷???ƥ??λ??ȿ? (?̾??ϥޥ????ȿ??Ǥ????? ?????????ɤǤ??ʤ????????ͥ?????Ū?˥??󥯤????Ƥ??? ?ե????륷???ƥ??Ǥϡ??ޥ????ȿ??? 1 ???ä??????Τˤʤ??ޤ?)??
vfc_flags
?ե饰?ӥåȡ?

?ե饰?ϼ??Τ褦???????????Ƥ??ޤ?:

?????ͥ?????Ū???Ȥ߹??ޤ??Ƥ???
?ǡ??????ͥåȥ????ͳ?Ǽ?????????
?񤭹??ߤ?̤????
?ǡ????ϼ¥ե???????ɽ?????ʤ?
?ޥ????ȺѤߤΥե????륷???ƥ????Ф?????̾
?ե?????̾?? Unicode ?dz?Ǽ

setvfsent() ?????? endvfsent() ?ؿ??ϡ? sysctl(3) ?ˤ??äƥ????ͥ? ?????ޤȤ??Ƽ??????????ե????륷???ƥ??ꥹ?ȤΡ??????å??????????? ???Ѥ????ޤ??? setvfsent() ?? cachelist ?ѥ??᡼???? 0 ?Ǥʤ????С??????? ?????ؿ??Τɤ줫???ǽ??˸ƤӽФ????????ǥꥹ?ȤϤ??? 1 ???????????Ф??졢 ?????å????򥯥ꥢ???뤿???? endvfsent() ???ƤӽФ??????ޤ??ݻ??????ޤ??? ???̤? setvfsent(1) ?ϡ? getvfsent() ?????Ѥ????ץ????????ˤ??äƸƤӽФ?????ɬ?פ????ꡢ setvfsent(0) ?? (???????ǥե????Ȥξ??֤?)?? vfsload() ?ؿ??????Ѥ????ץ????????ˤ??äƸƤӽФ?????ɬ?פ??????ޤ???

vfsisloadable() ?ؿ??ϡ????? vfsload(name) ?θƤӽФ???³???????????? 0 ?ͤ??֤??ޤ????????? “????” ?ȸ????Τϡ? vfsisloadable() ?? vfsload() ?????????뤿???ξ??????????å????ʤ??????Ǥ???

vfsload() ?ؿ??ϡ??ե????륷???ƥ? name ?μ????????ͥ??⥸?塼?????????? ???褦?Ȼ??ߤޤ????ե????륷???ƥ??⥸?塼????̵?????ͤ??ߤ??ƥ????ɤ??? ?????? 0 ????????¾?ξ??????? 0 ???֤??ޤ??????δؿ????ƤӽФ????Τϼ??? ?????????????Ǥ???

  1. getvfsbyname() ???ƤӽФ????? 0 ?ͤ??֤ä????硣
  2. vfsisloadable() ???ƤӽФ????? 0 ?ͤ??֤ä????硣

mount_cd9660(8) ?Υ????????????ä????????򼡤˼????ޤ???

struct vfsconf *vfc;
int error;

/* ?????˥??åȥ??åץ????ɤ????? */

error = getvfsbyname("cd9660", &vfc);
if (error && vfsisloadable("cd9660")) {
	if (vfsload("cd9660"))
		err(EX_OSERR, "vfsload(cd9660)");
	endvfsent();	/* flush cache */
	error = getvfsbyname("cd9660", &vfc);
}
if (error)
	errx(1, "cd9660 filesystem is not available");

if (mount(vfc.vfc_name, dir, mntflags, &args) < 0)
	err(1, NULL);

getvfsent() ?롼?????ϡ?????????????Ū?ǡ?????¤?ΤΥݥ??󥿤򡢼??Ԥ????? ?̥? ?ݥ??󥿤??֤??ޤ????????? sysctl(3) ?ޤ??? malloc(3) ?Ǽ??Ԥ????????ϡ? errno ?????????ؿ??Ѥ˥ɥ????????Ȥ??줿?ͤ? 1 ?Ĥ? ???ꤵ???뤳?Ȥ??????ޤ???????¾?ξ??? errno ?ϲ??Ѥ????ޤ?????

vfsload() ?ؿ??ϼ??Ԥ??????? 0 ?ͤ????????????? 0 ???֤??ޤ??? vfsload() ?????Ԥ??????硢 kldload(2) ?Ѥ˵??Ҥ??줿 errno ?ͤ????ꤵ?????ޤ???

kldload(2), mount(2), mount(8)

???Υ????ɲ?ǽ?ե????륷???ƥॵ?ݡ??Ȥϡ? Terry Lambert ?ˤ??????ѤΥ????ɲ?ǽ?????ͥ??⥸?塼?륵?ݡ??Ȥ??١????ˡ? Garrett A. Wollman ?ˤ??äƽ񤫤??ޤ?????

getvfsent() ?ؿ??ե??ߥ??? FreeBSD 2.0 ?ǤϤ??????о줷?ޤ?????
September 24, 1994 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.