⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hd.4

📁 Unix操作系统minix 2.0源码
💻 4
📖 第 1 页 / 共 2 页
字号:
%!PS-Adobe-1.0%%Creator: devps (Pipeline Associates, Inc.)%%CreationDate: Fri Sep 13 13:08:01 1996%%Pages: (atend)%%DocumentFonts: (atend)/devps 180 dict def devps begin/res 10.000000 def/y_offset 843 def/X{exch}bind def/mm {transform round X round X itransform} bind def/r{rmoveto}bind def/m{moveto}bind def/l{lineto}bind def/rl{rlineto}bind def/st{stroke}bind def/gs{gsave}bind def/gr{grestore}bind def/cp{currentpoint}bind def/np{newpath}bind def/ct{curveto}bind defsystemdict /setpacking known { /savepacking currentpacking def true setpacking } if/m0{0 0 moveto}bind def/xc{//res div}bind def/yc{//res neg div //y_offset add}bind def/lc{yc X xc X l st}bind def/mc{yc X xc X m}bind def/el{gs /a X def a div 1 X scale cp np a xc 2 div 0 360 arc st gr}bind def/ar{cp 7 2 roll np xc 5 1 roll atan 3 1 roll atan X arc st}bind def/sp{yc X xc X 6 2 roll yc X xc X 6 2 roll yc X xc X 6 2 roll ct}bind def/V{//res neg div //y_offset addcurrentpoint pop Xm}bind def/H{//res div0 transform X round X itransform popcurrentpoint X popmoveto}bind def/h{//res div 0 r}bind def/v{//res neg div 0 X r}bind def/S{X H show}bind def/A{H //res div 1 index stringwidth pop sub 1 index length div 0 3 2 roll ashow}bind def/psize 10 def/height 0 def/cheight { height 0 ne { height } { psize } ifelse } bind def/slant 0 def/FF{findfont X dup 30 div 0 mm pop setlinewidth /psize X def    [psize 0 cheight slant sin slant cos div mul cheight 0 0]    makefont setfont}bind def/shade{gs /dy X def /dx X def np m 0 /dy rl /dx 0 rl 0 /dy neg rl /dx neg 0 rl closepath .9 setgray fillgr}bind def1 setlinecap/resolution res 72 mul def/startFig {	/SavedState save def	userdict maxlength dict begin	currentpoint transform	DocumentInitState setmiterlimit setgray setdash setlinejoin setlinecap		setlinewidth setmatrix	itransform moveto	/ury exch def	/urx exch def	/lly exch def	/llx exch def	/y exch 72 mul resolution div def	/x exch 72 mul resolution div def		currentpoint /cy exch def /cx exch def	/sx x urx llx sub div def	/sy y ury lly sub div def	sx sy scale	cx sx div llx sub	cy sy div ury sub translate		/DefFigCTM matrix currentmatrix def	/initmatrix {		DefFigCTM setmatrix	} def	/defaultmatrix {		DefFigCTM exch copy	} def	/initgraphics {		DocumentInitState setmiterlimit setgray setdash 			setlinejoin setlinecap setlinewidth setmatrix		DefFigCTM setmatrix	} def	/showpage {		initgraphics	} def}bind  def/clipFig {	currentpoint 6 2 roll	newpath 4 copy	4 2 roll moveto	6 -1 roll exch lineto	exch lineto	exch lineto	closepath clip	newpath	moveto}bind  def/doclip { llx lly urx ury clipFig } def/endFig {	end SavedState restore}bind  def/globalstart {	fontnum psize slant height resolution currentpoint 	pagesave restore gsave }bind  def/globalend {	grestore moveto	/resolution exch def /height exch def	/slant exch def /psize exch def /fontnum exch def	F	/pagesave save def}bind  def/fontnum 1 def systemdict /setpacking known { savepacking setpacking} ifend/BP{save mark devps begin m0/DocumentInitState [ matrix currentmatrix currentlinewidth currentlinecapcurrentlinejoin currentdash currentgray currentmiterlimit ] cvx def}bind def/EP{end cleartomark restore showpage}def/Encoding-1 256 array def0 1 255 {Encoding-1 exch /.notdef put} forEncoding-1 8#301 StandardEncoding 8#101 26 getinterval putinterval %A-BEncoding-1 8#341 StandardEncoding 8#141 26 getinterval putinterval %a-bEncoding-1 8#241 StandardEncoding 8#301 16 getinterval putinterval %accentsEncoding-1 8#373 StandardEncoding 8#365 1 getinterval putinterval %dotlessiEncoding-1dup 8#41 /copyright putdup 8#42 /registered putdup 8#43 /trademark putdup 8#44 /logicalnot putdup 8#45 /Eth putdup 8#46 /eth putdup 8#47 /Thorn putdup 8#50 /thorn putdup 8#51 /brokenbar putdup 8#52 /degree putdup 8#53 /divide putdup 8#54 /multiply putdup 8#55 /minus putdup 8#56 /onehalf putdup 8#57 /onequarter putdup 8#60 /threequarters putdup 8#101 /Aacute putdup 8#102 /Acircumflex putdup 8#103 /Adieresis putdup 8#104 /Agrave putdup 8#105 /Aring putdup 8#106 /Atilde putdup 8#107 /Ccedilla putdup 8#110 /Eacute putdup 8#111 /Ecircumflex putdup 8#112 /Edieresis putdup 8#113 /Egrave putdup 8#114 /Iacute putdup 8#115 /Icircumflex putdup 8#116 /Idieresis putdup 8#117 /Igrave putdup 8#120 /Ntilde putdup 8#121 /Oacute putdup 8#122 /Ocircumflex putdup 8#123 /Odieresis putdup 8#124 /Ograve putdup 8#125 /Otilde putdup 8#126 /Scaron putdup 8#127 /Uacute putdup 8#130 /Ucircumflex putdup 8#131 /Udieresis putdup 8#132 /Ugrave putdup 8#133 /Ydieresis putdup 8#134 /Zcaron putdup 8#135 /aacute putdup 8#136 /acircumflex putdup 8#137 /adieresis putdup 8#140 /agrave putdup 8#141 /aring putdup 8#142 /atilde putdup 8#143 /ccedilla putdup 8#144 /eacute putdup 8#145 /ecircumflex putdup 8#146 /edieresis putdup 8#147 /egrave putdup 8#150 /iacute putdup 8#151 /icircumflex putdup 8#152 /idieresis putdup 8#153 /igrave putdup 8#154 /ntilde putdup 8#155 /oacute putdup 8#156 /ocircumflex putdup 8#157 /odieresis putdup 8#160 /ograve putdup 8#161 /otilde putdup 8#162 /scaron putdup 8#163 /uacute putdup 8#164 /ucircumflex putdup 8#165 /udieresis putdup 8#166 /ugrave putdup 8#167 /ydieresis putdup 8#170 /zcaron putpop/Enc-dict 30 dict defEnc-dict /tmpstr1 50 string putEnc-dict /tmpstr2 50 string putEnc-dict /tmpstr3 50 string dup (Encoding-) exch cvs pop put/AEnc-def { % arguments: the original font's name, encoding nrEnc-dict begintmpstr2 cvs /Enc-no exch def % Remember the number in a stringdup /OrigName exch def % remember the namefindfont dup maxlength dict /newdict exch def % get dictionary for new font{ exch dup /FID ne   { exch newdict 3 1 roll put }   { pop pop } % Ignore FID   ifelse} forallnewdict begin/Encoding  tmpstr3 9 Enc-no putinterval tmpstr3 0 9 Enc-no length add getinterval  cvn load  def % Replace encodingcurrentdict /UniqueID known{ /UniqueID UniqueID Enc-no cvi 49999 mul add def } if % Derive New UniqueIDend % newdict/FNlength OrigName tmpstr1 cvs length def % convert name, remember lengthFNlength 1 add Enc-no length add stringdup 0 OrigName tmpstr1 cvs putintervaldup FNlength (-) putintervaldup FNlength 1 add Enc-no putintervaldup 0 tmpstr1 0 FNlength getinterval putinterval % Add old namecvn dup newdict /FontName 3 2 roll put newdict definefontend % Enc-dict} def/Times-Roman 1 AEnc-def pop/R-1{/Times-Roman-1 FF}def/R{/Times-Roman FF}def/B{/Times-Bold FF}def/I{/Times-Italic FF}def%%EndProlog%%Page: 1 1BP/slant 0 def/height 0 def480 V10 R720(HD)S874(\()S916(4)S974(\))S2696(Eighth)S(Edition)296 2989 A4973(HD)S5127(\()S5169(4)S5227(\))S960 V9 R720(N)S722(NA)S790(AM)S858(ME)S940(E)S1080 V10 R1080(hd)S10 R-11205(-)S10 R1287(winchester)S1749(hard)S1953(disk)S1248 V9 R720(D)S722(DE)S790(ES)S848(SC)S900(CR)S962(RI)S1024(IP)S1057(PT)S1109(TI)S1167(IO)S1200(ON)S1268(N)S1368 V10 R1080(The)S10 B1274(hd*)S10 R1473(family)S1773(of)S1894(devices)S2233(refer)S2462(to)S2577(the)S2737(Winchester)S3233(hard)S3449(disk)S3654(drivers)S3972(for)S4128(the)S4289(IBM)S4517(XT,)S4715(AT)S4888(and)S5071(PS/2)S1488 V1080(machines,)S1513(but)S1669(may)S1870(also)S2060(refer)S2280(to)S2386(the)S2537(generic)S2862(\(and)S3069(slower\))S3400(BIOS)S3658(based)S3915(hard)S4122(disk)S4317(driver.)S4636(These)S4904(disks)S5137(are)S1608 V1080(arrays)S1353(of)S(512)150 1463 A1639(byte)S1838(sectors,)S(although)351 2169 A2546(Minix)S2817(always)S3123(works)S3395(with)S3600(two)S3777(sectors)S4084(at)S4184(a)S4256(time)S4462(due)S4634(to)S4739(its)S(1024)200 4861 A5088(byte)S1728 V1080(block)S1333(size.)S1570(You)S1773(can)S1943(read)S2147(or)S2260(write)S2497(any)S2671(number)S3007(of)S3120(bytes)S3361(however,)S3762(Minix)S4036(takes)S4272(care)S4470(of)S(cutting)279 4583 A4891(and)S5065(past-)S1848 V1080(ing)S1233(incomplete)S1705(blocks)S1992(together.)S2016 V1080(The)S1262(devices)S1589(may)S1787(be)S1907(divided)S2233(into)S2414(three)S2641(classes:)S2256 V1440(The)S1628(devices)S1961(with)S2171(a)S2247(minor)S2518(device)S2812(number)S3150(that)S3332(is)S3430(a)S(multiple)335 3506 A3872(of)S3988(5,)S4095(i.e.)S10 B4275(hd0)S10 R4469(or)S10 B4585(hd5)S10 R4747(,)S4804(refer)S5028(to)S5138(the)S2376 V1440(whole)S1714(hard)S1921(disk)S2116(0)S2194(and)S2367(1.)S(Through)346 2495 A2869(these)S3104(devices)S3434(one)S3607(has)S(access)258 3769 A4055(to)S4161(any)S4334(block)S4585(on)S4713(the)S4863(hard)S5069(disk.)S2496 V1440(Most)S1671(notably)S1997(the)S(partition)341 2145 A2511(table,)S2757(that)S2933(can)S3098(be)S(found)234 3218 A3477(in)S3580(the)S3728(\256rst)S3910(sector)S4176(of)S4285(the)S4433(disk.)S2736 V1440(The)S1625(devices)S1955(with)S2162(a)S2235(minor)S2503(device)S2794(number)S3129(that)S3308(is)S3403(not)S3559(a)S(multiple)335 3632 A3995(of)S4107(5,)S4210(i.e.)S10 B4386(hd1)S10 R4548(,)S10 B4601(hd2)S10 R4763(,)S(...,)100 4816 A10 B4945(hd6)S10 R5107(,)S(...,)100 5161 A2856 V1440(refer)S1661(to)S1768(primary)S(partitions)380 2116 A2525(of)S2638(the)S2789(lower)S3047(numbered)S3477(whole)S3751(hard)S3958(disk)S4153(device.)S4494(These)S4763(devices)S5093(nor-)S2976 V1440(mally)S1694(contain)S2015(MS-DOS)S2421(or)S2530(Minix)S2800(\256le)S2954(systems.)S(/dev/hd1)351 3347 A3723(is)S3815(often)S4047(the)S4195(MS-DOS)S4601(C:)S4721(drive.)S3216 V1440(Minor)S1716(devices)S2043(from)S(128)150 2264 A2439(up)S2564(may)S2762(refer)S2979(to)S3082(Minix)S(subpartitions)519 3352 A3896(within)S4178(primary)S(partitions)380 4523 A4929(if)S5017(a)S5088(sub-)S3336 V(partition)341 1440 A1823(table)S2061(has)S2237(been)S(placed)263 2469 A2774(in)S2893(a)S2979(Minix)S3265(primary)S(partition.)366 3625 A4057(The)S(subpartitions)519 4255 A4815(of)S10 B4940(hd3)S10 R5143(for)S3456 V1440(instance,)S1829(are)S1987(named)S10 B2290(hd3a)S10 R(through)312 2537 A10 B2884(hd3d)S10 R3102(.)S3187(Their)S3441(minor)S3716(device)S4014(numbers)S4395(may)S4603(be)S4733(calculated)S5177(as)S3576 V(128)150 1440 A1615(+)S(16*drive)357 1697 A2079(+)S(4*partition)441 2161 A2627(+)S(subpartition,)505 2709 A(counting)351 3239 A3615(the)S(partitions)380 3763 A4168(from)S4389(zero.)S3744 V1440(If)S1534(a)S1605(primary)S(partition)341 1950 A2317(is)S2410(an)S2531(extended)S(partition)341 2920 A3287(then)S3486(up)S3612(to)S3716(four)S3911(logical)S(partitions)380 4212 A4619(can)S4786(be)S(accessed)353 4908 A3864 V1440(as)S(subpartitions)519 1559 A2113(of)S2232(that)S2418(extended)S(partition.)366 2816 A3242(This)S3456(allows)S3754(one)S3933(to)S(access)258 4045 A4337(foreign)S4662(\256le)S4825(systems)S5177(of)S3984 V1440(other)S1672(operating)S2077(systems,)S2445(Minix)S2715(\256le)S2869(systems)S3212(are)S3361(not)S3514(normally)S(placed)263 3902 A4190(in)S4293(logical)S(partitions.)405 4592 A4152 V9 R720(P)S722(PA)S774(AR)S842(RT)S904(TI)S962(IT)S995(TI)S1053(IO)S1086(ON)S1154(NI)S1222(IN)S1255(NG)S1323(G)S4272 V10 R1080(The)S1262(\256rst)S1444(sector)S1710(of)S1819(a)S1889(drive)S2121(\(or)S(partition)341 2264 A2630(for)S(subpartitioning\))642 2773 A3440(contains)S3800(the)S(partition)341 3948 A4314(table)S4535(at)S4633(byte)S4831(offset)S(446.)175 5086 A4392 V1080(This)S1284(is)S1376(what)S(each)185 1597 A1807(of)S1916(the)S2064(four)S2257(entries)S(looks)217 2551 A2793(like)S2969(as)S3078(de\256ned)S3399(in)S(<ibm/partition.h>:)742 3502 A4632 V1080(/*)S1183(Description)S1678(of)S1787(entry)S2019(in)S2122(the)S(partition)341 2270 A2636(table.)S2907(*/)S4872 V1080(struct)S1329(part_entry)S1768({)S4992 V1180(unsigned)S1567(char)S(bootind;)334 1766 A2630(/*)S(boot)178 2733 A2936(indicator)S3319(0/ACTIVE_FLAG)S4480(*/)S5112 V1180(unsigned)S1567(char)S1766(start_head;)S2630(/*)S2733(head)S2948(value)S3191(for)S3334(\256rst)S3516(sector)S4480(*/)S5232 V1180(unsigned)S1567(char)S1766(start_sec;)S2630(/*)S2733(sector)S2999(value)S3242(+)S3324(high)S3527(2)S

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -