深蓝色是什么颜色| 一什么不什么的成语| 险象环生是什么意思| 双肺斑索是什么意思| 孕妇什么时候有奶水| 陈宝莲为什么自杀| 戒指戴左手中指是什么意思| 羊肉和什么相克| 不来事是什么原因| 柏拉图爱情是什么意思| 中国最大的湖泊是什么湖| 以什么当什么| 打呼噜是什么原因| 外科主要看什么病| 睡觉做梦是什么原因| 匆匆那年是什么意思| 肾阴虚有什么症状表现| 什么的麦田| 中规中矩什么意思| 梦见手机失而复得是什么意思| 纳囊是什么病| 鼻炎吃什么消炎药| 血糖偏高可以吃什么水果| 雌二醇是什么意思| 奶油色是什么颜色| 人生格言是什么意思| 海南的海是什么海| 行驶证和驾驶证有什么区别| 跑业务是什么工作| 七星伴月是什么意思| 有故事的人是什么意思| 人类的祖先是什么生肖| 狗能吃什么水果| 什么潭什么穴| 为什么会莫名其妙流鼻血| 前列腺液是什么东西| 梦见自己嫁人了预示着什么| 为什么会低钾| 什么是形声字| 玻璃瓶属于什么垃圾| 子宫b超能查出什么来| 梦见尸体是什么意思| 吃什么紧致皮肤抗衰老| 什么蛋不能吃脑筋急转弯| 3月18日什么星座| 4月25号什么星座| 诺贝尔为什么没有数学奖| 啵是什么意思| 金字旁目字读什么| 女生爱出汗是什么原因| 软著是什么| 吃了火龙果小便红色是什么原因| 老花眼有什么症状| 得了幽门螺杆菌是什么症状| 免运费是什么意思| 3个火念什么| 喝咖啡不能吃什么食物| 春天有什么特点| peek是什么材料| 嗜酸性粒细胞高是什么原因| 灯光什么| 97年属什么的生肖| 乳腺看什么科室| 儿童过敏性结膜炎用什么眼药水| 烤鱼什么鱼好吃| 毅力是什么意思| 书生是什么生肖| 胸腔疼痛是什么原因| 中医学是什么| 苟且是什么意思| 白细胞一个加号什么意思| 对称是什么意思| 为什么男人| 吃大米配什么菜| 夏天吃什么解暑| 洋葱有什么功效与作用| 新生儿拉肚子是什么原因引起的| 外阴瘙痒用什么药| 行号是什么| 猫咪吃什么| 痰多吃什么化痰| 头尖适合什么发型| 胃一阵一阵绞痛是什么原因| 1898年属什么生肖| 洋生姜的功效与作用是什么| 长脓包是什么原因| 唐氏筛查高风险是什么意思| 送葬后回家注意什么| 等闲识得东风面下一句是什么| 饿了吃什么不胖| 滢字五行属什么| 小麦淀粉可以做什么| 降钙素原高是什么原因| 画什么才好看| 庚日是什么意思| 持续高烧不退是什么原因| 大便偏黑是什么原因| 轻医美是什么| 施华洛世奇算什么档次| 化疗期间吃什么食物好| 去离子水是什么| 肺部占位性的病变指什么| 戊肝是什么病| 四气指的是什么| l5s1椎间盘突出是什么意思| 茼蒿不能和什么一起吃| 富丽堂皇是什么意思| 梦见自己捡钱是什么意思| 梦见金蛇有什么预兆| 62年的虎是什么命| t1是什么意思| 检查胸部应该挂什么科| 重度贫血是什么原因引起的| 为什么会有痛经| 白蛋白是什么| 文雅是什么意思| 宫颈糜烂用什么药比较好| 孕妇痔疮犯了能用什么药膏| 杳什么意思| hrd是什么职位| 为什么会得脂溢性皮炎| 灵芝和什么煲汤好| 龙日冲狗要忌讳什么| 尿潜血是什么原因造成的| 早泄挂什么科| 颈椎反曲是什么意思| 迪丽热巴是什么族| 鳞状上皮细胞高是什么原因| 邓超是什么星座| 儿童发育过早应该挂什么科| cos是什么牌子| 蝾螈是什么动物| 宫腔少量积液是什么意思| 卵泡不破是什么原因造成的| 喝水经常呛到是什么原因| 月经什么时候来| 深海鱼油有什么功效| 什么叫因果| 什么是引流| 舌尖发麻是什么问题| 指甲盖凹凸不平是什么原因| 泌尿系彩超主要是检查什么| 甲鱼炖什么好吃| 什么是直肠炎| 同人文是什么意思| 夫人是什么意思| 车震是什么意思啊| 株连九族是什么意思| 吃什么呢| 一个齿一个禹念什么| bonnie是什么意思| 刘庄为什么要灭了阴家| 积劳成疾的疾什么意思| 血压低有什么危险| 液氮是什么东西| 一九九八年属什么生肖| 打喷嚏是什么意思| 医院脱毛挂什么科| 自勉是什么意思| 急性支气管炎吃什么药| 什么的后羿| 戊型肝炎是什么病| 氨咖黄敏胶囊是什么药| 动脉导管未闭对宝宝有什么影响| 为什么会长息肉| 兔子能吃什么水果| 1936年属什么生肖| 爿是什么意思| 女性失眠吃什么药最好| 1月20是什么星座| 子宫内膜息肉有什么症状| 猫眼石是什么| 哪些动物的尾巴有什么作用| 阴阳二气是什么意思| 布病是什么症状| 丙肝是什么病| 感激不尽是什么意思| 泽去掉三点水念什么| 14k是什么意思| 肺积水是什么原因引起的| 什么名字好听| 窦性心律不齐吃什么药| 笋不能和什么一起吃| 孕妇吃菠萝对胎儿有什么好处| 蓝色配什么裤子| 红眼病是什么原因引起的| 211是什么学校| 二月九号是什么星座| 送情人什么礼物最好| 五谷是什么| 人的肝脏在什么位置| 这些是什么| 阿莫西林治什么病| 蓝柑是什么水果| 琴棋书画指的是什么| 牛肉排酸是什么意思| 切痣挂什么科| 有酒瘾是什么感觉| 脑血管堵塞会有什么后果| 9.3是什么日子| 桃李是什么意思| 酸梅汤不适合什么人喝| 为什么有白头发| 生菜是什么菜| 胆囊炎挂什么科室| 孕妇做无创是检查什么| 白带发绿是什么原因| 子宫腺肌症吃什么药| led是什么意思| 做人流吃什么水果| 什么水果补肾| 姓蔡的女孩起什么名字| 垂问是什么意思| 丘比特是什么意思| 柠檬和什么一起泡减肥| 唐筛和无创有什么区别| 湿气重不能吃什么| 小孩出冷汗是什么原因| bc是什么牌子| 法院院长是什么级别| 娇滴滴是什么意思| 睛可以组什么词| 疤痕增生是什么引起的| 黑管是什么乐器| 公司董事是什么职务| 女人下面水多是什么原因| 沙发客是什么意思| 一九六三年属什么生肖| 2023年属兔的是什么命| 阴盛阳衰什么意思| 屎为什么是臭的| 梦见死了人是什么征兆| 女人右手中指有痣代表什么| 人言可畏什么意思| 2003年属羊的是什么命| 总胆固醇高吃什么药| 维生素B3叫什么名字| 晚上睡觉脚底发热是什么原因| 贴秋膘是什么意思啊| 猪肝能钓什么鱼| 89年什么命| 狮子座和什么座最不配| 嘴发麻是什么原因引起的| 鱼鳞病是什么| 强阳下降到什么程度开始排卵| 寂灭是什么意思| 二尾子什么意思| 智齿前面一颗牙叫什么| 字母圈什么意思| 正色是什么意思| 阴道细菌感染用什么药| 蘑菇和什么不能一起吃| 芡实不能和什么一起吃| 六月初九是什么日子| 随餐吃是什么意思| 美国为什么打越南| 总是放屁什么原因| 钾血症是什么病| 存款准备金率是什么意思| 夏天吃什么解暑| 产后能吃什么水果| cs和cf有什么区别| 犯病是什么意思| 酸汤鱼用什么鱼| 百度Jump to content

车讯:9月成都车展首发 雪佛兰科沃兹实车曝光

From Wikipedia, the free encyclopedia
DFS
Developer(s)Acorn Computers
Full nameDisc Filing System
Introduced1982; 43 years ago (1982) with Acorn MOS
Partition IDsNone
Structures
Directory contentsSingle catalogue of 31 fixed length records
File allocationStart-Length entries
Bad blocksNone
Limits
Max volume size256 KB
Max file size255? KB
Max no. of files31
Max filename length7 characters
Allowed filename
characters
ASCII
Features
Dates recordedNone
Date rangeN/A
ForksNo
AttributesDirectory character, Load address, Execution address, Locked
File system
permissions
No
Transparent
compression
No
Transparent
encryption
No
Other
Supported
operating systems
Acorn MOS
百度 邹毅认为,一些线上的公司正加速往线下走,比如华谊兄弟正进行电影IP的落地,建设主题公园;一些线上动漫类公司也积极走向线下,通过IP和流量去线下拿地,落地项目,这也是一个趋势。

The Disc Filing System (DFS) is a computer file system developed by Acorn Computers, initially as an add-on to the Eurocard-based Acorn System 2.

In 1981, the Education Departments of Western Australia and South Australia announced joint tenders calling for the supply of personal computers to their schools. Acorn's Australian computer distributor, Barson Computers, convinced Joint Managing Directors Hermann Hauser and Chris Curry to allow the soon to be released Acorn BBC Microcomputer to be offered with disk storage as part of the bundle. They agreed on condition that Barson adapted the Acorn DFS from the System 2 without assistance from Acorn as they had no resources available. This required some minor hardware and software changes to make the DFS compatible with the BBC Micro.

Barson won the tenders for both states, with the DFS fitted, a year ahead of the UK. It was this early initiative that resulted in the BBC Micro being more heavily focused on the education market in Australia, with very little penetration of the home computer market until the arrival of the Acorn Electron.

The DFS shipped as a ROM and Disk Controller Chip fitted to the BBC Micro's motherboard. The filing system was of extremely limited functionality and storage capability, using a flat directory structure. Each filename can be up to seven letters long, plus one letter for the directory in which the file is stored.[1]

The DFS is remarkable in that unlike most filing systems, there was no single vendor or implementation. The original DFS was written by Acorn, who continued to maintain their own codebase, but various disc drive vendors wrote their own implementations. Companies who wrote their own DFS implementations included Cumana, Solidisk, Opus and Watford Electronics. The Watford Electronics implementation is notable for supporting 62 files per disc instead of the usual 31, using a non-standard disc format. Beyond that, the Solidisk implementation introduced proprietary "chained" catalogues which allowed unlimited files per disc (only constrained by the disk size).[2] Other features in third-party implementations included being able to review free space, and built-in FORMAT and VERIFY commands, which were shipped on a utility disc with the original Acorn DFS.

Acorn followed up their original DFS series with the Acorn 1770 DFS, which used the same disc format as the earlier version but added a set of extra commands and supported the improved WD1770 floppy drive controller chip.

Physical format

[edit]

DFS conventionally uses one side of a double-density 5?" floppy disc. Discs are formatted as either 40 or 80 track, giving a capacity of 100 or 200 KB per side (ten 256-byte sectors per track, with FM encoding).

The capacity is limited by the choice of the Intel 8271 controller in the original BBC Micro, which only supports FM encoding, not the MFM encoding which was already in common use by the time of the BBC Micro's launch. FM encoding gives half the recording capacity of MFM for a given physical disc density.

FM and MFM encoding are commonly referred to as "single density" and "double density", although the discs and drives are the same, unlike "high density", which uses different drives and discs.

Double-density 3?" discs can be formatted and used with 1770 DFS (the Intel 8271-based DFS has problems with many 3?" drives), giving the same "single-density" capacity with FM encoding, but this was not originally standard practice. 3?" discs were normally formatted as MFM "double density" using the later Advanced Disc Filing System, as this is present in all Acorn machines supplied with 3?" drives. As of 2009, 3?" drives are more commonly used with BBC Micros than in the past, including use with DFS, due to their greater availability and easier data interchange with more recent computers.

High-density 5?" and 3?" discs are not supported by DFS.

Single- and double-sided operation

[edit]

The DFS does not directly support double-sided discs; instead, the two heads of a double-sided drive are treated as two separate logical drives. The DFS can support up to four volumes, numbered from 0 to 3. Drive 0 is the default with drive 1 representing a second drive attached to the cable. "Drive" 2 referred to the reverse side of drive 0, and "drive" 3 was the reverse of drive 1. There is no support for more than two physical drives.

Due to the installed base of single-sided drives, commercial software was normally provided on single-sided discs, or as "flippy discs" that were manually reversed to access the other side.

40- and 80-track compatibility

[edit]

Discs can be formatted using 40 or 80 tracks, using the *FORM40 or *FORM80 commands, and drives can be either 40 or 80 track. This is the most common compatibility issue for DFS users: 40-track discs were the norm for commercial software distribution, due to the installed base of 40-track drives, but 80-track drives became more common as prices dropped, allowing users to store more data. An 80-track drive will not automatically read 40-track discs.

The disc capacity is stored as a sector count in the catalogue on track zero. Track zero is located in the same place on both 40- and 80-track discs, allowing a disc file system to set the motor stepping accordingly. However, the Intel 8271-based Acorn DFS does not do so, and so dual-format capability was addressed in a number of ways:

  • by simply attaching both a 40-track drive and an 80-track drive to the BBC Micro, although this was costly for the home user;
  • some disc drive resellers, notably UFD (User Friendly Devices) and Akhter Computer Group, offered drive assemblies fitted with switches to select 40- or 80-track operation;
  • magazines such as The Micro User offered kits to build circuit boards that could be wired into the disc drive cable, optionally 'double-stepping' the attached drives;[3]
  • The Micro User also published an article[4] on creating dual-format discs, with 21 tracks' worth of data stored in both formats so that either type of drive could access the contents; however these had limited capacity and once created were read-only;
  • Acorn User magazine distributed 40-track cover discs with a small utility program on track zero, so that owners of 80-track drives could reformat them into 80-track discs with the original contents on the first 40 tracks; or
  • the user could upgrade to a WD1770 or similar controller. Acorn 1770 DFS and some third-party controller systems provided dual-format capability in software by reprogramming the controller during track seeks; as a bonus, third-party systems offered proprietary MFM (so-called "double-density") formats for even greater disc capacity.

Failure to use the correct setting would result in errors from the DFS such as Disk fault 18 at 01/00,[5] or damage to the disc drive by trying to step the heads beyond the physical end of the disc surface.

Switching to 80 tracks did not extend the catalogue in any way, leaving the user prone to running out of filename slots before running out of space on the disc. This situation resulted in a Cat full error.

File storage

[edit]

Filenames

[edit]

DFS is case-preserving but not case-sensitive. The prevalence of all-capitals filenames is most likely due to the BBC Micro defaulting to caps lock being enabled after a hard or soft reset. The character set is quite permissive, and all printable characters of 7-bit ASCII are allowed, including spaces, but excluding:

  • The single wildcard character #.
  • The multiple wildcard character *.
  • Control codes generated by the shell escape character |, although the sequence || can be used to represent a single | character in the filename.
  • The drive specifier character : as the first character of a leaf name (the file's name proper). This causes a Bad drive or Bad name error. Where the colon is unambiguous, for example in FOO:BAR, then it is allowed as part of the leaf name.
  • The directory specifier character . as the first or second character of a leaf name. . cannot be used as a directory character. Where the dot is unambiguous, such as in PRG.BAS, then it is allowed as part of the leaf name, and is not treated as a directory specifier (whereas F.MONEY would be a file MONEY in directory F).

For the sake of portability to third-party DFS implementations, it is best to avoid : and . in leaf names.

Quotation marks are allowed, although BBC BASIC requires them to be escaped twice:

  • SAVE """""""A""" passes the string """A" to the DFS, which then saves a file named "A.
  • Conversely SAVE "A""" saves a file named A".
  • The same technique is used to insert spaces: SAVE """B A R""" saves a file named B A R.

A fully qualified filename, or "file specification" ("fsp" for short) contains a colon then the drive number, a dot, then the directory letter, another dot, and the name. For example, a file in the default directory of "drive" 2 called BOB would have a complete specification of :2.$.BOB. The drive and directory specifiers are both optional.

Directories

[edit]

"Directories" in the DFS are single character prefixes on filenames - such as F in F.BankLtr - used to group files. The arrangement is flat and a default directory of $ is used instead of a root directory. On requesting a catalogue of the disc (with the *CAT or *. commands), files in the current directory are shown with no directory prefix in one block, and below that are listed all other files in a second block, with their directory prefixes visible. For example, (from Acorn DFS - third party DFS implementations may vary slightly):

PROGRAM (12)
Drive 0             Option 2 (RUN)
Dir. :0.$           Lib. :0.$

    !BOOT               HELLO
    SUMS                TABLE
    TEST                VECTORS
    ZOMBIE

  A.HELLO   L         B.SUMS
  F.BankLtr

The top seven files are all in the current directory which is $ on drive 0. Below that are all the files in other directories, in this case A, B and F. An L after a filename (as with A.HELLO, above) shows the file is locked against modification or deletion. The first line contains the disc title and the modification count.

The DFS provides a working space, divided up into the directory and the library. The "directory" is the working directory on the current volume, much like the working directory on any other command line system. The "library" is a second, alternative working directory that functions more like PATH and had the benefit of being able to be on any volume. Requests to open files with unqualified names, will first be searched for in the working directory; failing this, the library directory will also be searched. The directory and library both default to the same directory.

Disc structure

[edit]

The catalogue (file table) occupies the first two disc sectors: one for the names and directories of each file, and a matching sector holding the file locations, sizes and metadata. Eight bytes of each sector are used for each file. With a further eight bytes from each sector reserved for the 12-byte disc title and the volume information, the total number of files on the disc (irrespective of which directory each file is in) is limited to 31. In the interests of saving space, the most significant bit of the directory letter for a file is used as the locked (read-only) flag.

Volume size

[edit]

Although physical disks are usually formatted as either 100 KB or 200 KB, DFS supports volume sizes up to 256 KB.

The largest DFS file size allowed is the volume size minus ? KB for the catalogue, as file sizes are stored as an 18-bit quantity.

File allocation

[edit]

The DFS does not support data fragmentation, meaning a file's data must be stored in a single run of consecutive sectors, but free space is prone to becoming fragmented. Random-access file writes fail when the end of the file reaches the beginning of the next, even though there may be free sectors elsewhere on the disc. In such cases the DFS aborts with a Can't extend error. SAVE is also unable to split a file to fit the available space, but as the failure occurs at the sector allocation stage, the error returned is Disk full.

The *COMPACT command is provided to relocate all files on disc to a solid block, placing all the free space after it in a second block. This allows the next file created to fill the disc, but only the last existing file can be extended without being moved. SAVE deletes any existing file and copies the specified block of memory to wherever there is space on the disc. In contrast the *COMPACT command uses program memory as a buffer to relocate the files, overwriting any program and data in memory.

Metadata

[edit]

Like the cassette filing system, the Acorn DFS supports the BBC Micro's standard file metadata: load address and execution address, required because Acorn MOS (the operating system used by the BBC Micro) does not support relocation of binary code. A file should be loaded to the address the programmer intended, as the contents may refer to internal locations by absolute addresses. An execution address is also recorded as the entry point is not necessarily at the beginning, or even within the file.

File attributes are limited to a single bit: Locked. When set, an L appears to the right of the file's name in the catalogue and the file may not be altered, overwritten or deleted.

Dates

[edit]

DFS discs do not track any dates (because Acorn MOS prior to version 3 did not maintain a real-time clock) but instead offer a peculiar feature: a modification count. Every time the catalogue is updated, the count increments. The count is shown in parentheses after the title in the first line of the disc catalogue, such as the 12 in the catalogue listing shown earlier.

Other features

[edit]

The DFS also supports a means to start up disc software based on a key sequence. If the shift key is held while the machine is soft or hard reset, the DFS checks drive 0 for a disc containing a positive boot flag. The boot flag is either 0 (ignore), 1 (load file), 2 (run machine code file) or 3 ("execute" script). If the boot flag is positive, a file called $.!BOOT is looked for and loaded into memory (1), loaded and executed as machine code (2) or fed into the keyboard buffer (3). Option 3 reads "EXEC" files, text macro files used as primitive shell scripts. These are not true shell scripts but simply a series of keys to be typed, like a recording to play back. Thus, they cannot loop or branch unless they input such code into the BASIC interpreter. As well as being used during a reset, they can be executed at any time with the operating system's *EXEC command. EXEC files are file system independent.

Alternatives

[edit]

There was a variant of the DFS called the DNFS, or Disc/Network Filing System, that contained the Econet Network Filing System (NFS), standard Disc Filing System and Tube co-processor support software on a single ROM; this ROM installed two filing systems into the OS at once.

The initial design for the DFS was based around an Intel Corporation FDC 8271 disc drive controller, the immediate predecessor of the 8272 design found in the IBM Personal Computer. The 8271 controller was of limited functionality and obsolete, and later versions of the file system from various vendors including Solidisk, Acorn and Watford Electronics were based on the later WD1770 and WD1772 drive controllers. The 1770 controller quickly became the standard controller in the Acorn range following the advent of ADFS.

The DFS was superseded by the Advanced Disc Filing System (ADFS) which was fully hierarchical and was suitable for running hard drives on the BBC Micro. The ADFS was the default filing system on the BBC Master but most users are likely to have reverted to the DFS for compatibility reasons; ADFS could not read DFS discs. The ADFS was also chosen as the standard filing system for RISC OS.

References

[edit]
  1. ^ "Chriswhy.co.uk" (PDF).
  2. ^ "MMB/SSD Utils in perl".
  3. ^ Cook, Mike (October 1985). "Downgrading your system? Yes, it can make sense". The Micro User. 3 (8). Stockport, UK: Database Publications: 125–127. ISSN 0265-4040.
  4. ^ Nixon, Chris (April 1987). "DIY dual format discs". The Micro User. 5 (2). Stockport, UK: Database Publications: 43–44. ISSN 0265-4040.
  5. ^ Acorn Disc Filing System User Guide, issue no.2, July 1983, page 84. "Disk" is spelled with a "k" in error messages, but "c" in the name of the filing system.
[edit]
女生胸痛什么原因 为什么有蟑螂 脑梗吃什么食物 9点是什么时辰 投食是什么意思
什么是岩茶 痛苦是什么意思 眼皮跳什么预兆 波尔多红是什么颜色 319是什么意思
画地为牢下一句是什么 重组人干扰素a2b主要是治疗什么病 阴米是什么米 什么叫全日制本科 四个日念什么
hbsag阳性是什么意思 什么叫低级别上皮内瘤变 喝红酒对身体有什么好处 命里缺金取什么名字好 汗毛重的女人意味着什么
红茶适合什么季节喝hcv7jop4ns7r.cn 出柜是什么意思hcv8jop9ns3r.cn 女人怕冷是什么原因hcv7jop4ns6r.cn 舌头锯齿状是什么原因hcv7jop7ns1r.cn 补中益气丸治什么病hcv8jop1ns0r.cn
吃小米粥有什么好处和坏处hcv9jop1ns7r.cn 什么人不能吃桃子hcv8jop6ns4r.cn 留白是什么意思hcv9jop1ns9r.cn 强直性脊柱炎是什么病mmeoe.com 什么水果是钙中之王hcv8jop0ns2r.cn
红豆和什么搭配最好hcv9jop4ns9r.cn birkin是什么意思hcv8jop5ns7r.cn 阴唇为什么一大一小hcv7jop7ns1r.cn 泌尿系感染吃什么药sscsqa.com 请丧假需要什么证明cl108k.com
女人一般什么时候容易怀孕bysq.com k粉是什么hcv9jop4ns8r.cn 令尹是什么官职hcv8jop2ns2r.cn 肾漏蛋白是什么病hcv8jop2ns4r.cn 一个马一个襄念什么hcv9jop1ns7r.cn
百度