Record-oriented filesystem

In computer science, a record-oriented filesystem is a file system where data is stored as collections of records. This is in contrast to a byte-oriented filesystem, where the data is treated as an unformatted stream of bytes. There are several different possible record formats; the details vary depending on the particular system. In general the formats can be fixed-length or variable length, with different physical organizations or padding mechanisms; metadata may be associated with the file records to define the record length, or the data may be part of the record. Different access methods for records may be provided, for example records may be retrieved in sequential order, by key, or by record number.

Origin and characteristics

Record-oriented filesystems are frequently associated with mainframe operating systems, such as OS/360 and successors[1] and DOS/360 and successors, and midrange operating systems, such as RSX-11 and VMS. However, they originated earlier in software such as Input/Output Control System (IOCS).[2] Records, sometimes called logical records, are often written together in blocks, sometimes called physical records; this is the norm for direct access and tape devices, but files on unit record devices are normally unblocked, i.e., there is only one record per block.

Record-oriented filesystems can be supported on media other than direct access devices. A deck of punched cards can be considered a record-oriented file. A magnetic tape is an example of a medium that can support records of uniform length or variable length.

In a record file system, a programmer designs the records that may be used in a file. All application programs accessing the file, whether adding, reading, or updating records share an understanding of the design of the records. In DOS/360, OS/360, and their successors there is no restriction on the bit patterns composing the data record, i.e. there is no delimiter character; this is not always true in other software, e.g., certain record types for RCA File Control Processor (FCP) on the 301, 501, 601 and 3301.

The file comes into existence when a file create request is issued to the filesystem. Some information about the file may be included with the create request. This information may specify that the file has fixed-length records (all records are the same size) along with the size of the records. Alternatively, the specification may state that the records are of variable length, along with the maximum record length. Additional information including blocking factor, binary vs. text and the maximum number of records may be specified.

It may be permitted to read only the beginning of a record; the next sequential read returns the next collection of data (record) that the writer intended to be grouped together. It may also be permitted to write only the beginning of a record. In these cases, the record is padded with binary zeros or with spaces, depending on whether the file is recognized as a binary file or a text file.

Some operating systems require that library routines specific to the record format be included in the program. This means that a program originally expected to read a variable length record file cannot read a fixed length file. These operating systems must provide file system utilities for converting files between one format and another. This means copying the file (which requires additional storage space, time and coordination) may be necessary.

Other operating systems include various routines and associate the appropriate routine, based on the file organization, at execution time.

In either case, significant amounts of code to manage records must be provided in protected routines to ensure file integrity.

An alternative to a Record-oriented file is a stream file, in which the file system treats a file as an unstructured sequence of bytes. The applications may, but need not, impose a record structure. This approach significantly reduces the size and complexity of the library and reduces the number of utilities required to maintain files.

A common application convention for text files represented as streams is to use a new line delimiter to separate or terminate records, commonly CR, CRLF or LF. Unfortunately, the CPU time required to parse for the record delimiter is significant and the exclusion of the record delimiter pattern from the data is frequently undesirable.

An alternate convention is to include a length field in each record. The writer application is responsible for imposing any record structure and the reader application is responsible for separating out the records.

Advantages and costs

A record oriented file has several advantages. After a program writes a collection of data as a record the program that reads that record has the understanding of those data as a collection. Often a file will contain several related records in sequence; after the program reads the beginning of the sequence, the next sequential read returns the next collection of data (record) that the writer intended to be grouped together. Another advantage is that the record has a length and there is usually no restriction on the bit patterns composing the data record, i.e. there is no delimiter character.

There is usually a cost associated with record oriented files. For fixed length records, some records may have unused space, while for variable length records the delimiter or length field takes up space. Variable length blocks may have overhead due to delimiters or length fields. In addition, there is overhead imposed by the device. On a magnetic tape overhead typically takes the form of an inter-record gap. On a direct access device with fixed length sectors, there may be unused space in the last sector of a block. On a direct access device with variable length physical records, that overhead typically takes the form of metadata and inter-record gaps.

On a file composed of varying length records a maximum record length is defined to determine the size of the length metadata associated with each record.

A major advantage of record-oriented file systems is that they abstract files kept on paper in earlier times. A record might contain data associated with a particular, e.g., building, contact, employee, part, venue.

A second motivator for the idea of record orientation is that it is in some sense the more natural orientation for persistent storage on a non-volatile but slow physical storage device. Most physical storage devices can communicate only in units of a block. Significant portions of modern operating system kernels and associated device drivers are devoted to hiding the naturally structured and delimited (and in some sense a block is just a physical record) nature of physical storage devices. It is not coincidental that record oriented file systems arose earlier in the history of computing than byte-stream oriented file systems, when the capabilities for abstraction were far less.

See also

References

  1. ^ z/OS DFSMS Using Data Sets Version 2 Release 3 (PDF), October 2, 2018, SC23-6855-30
  2. ^ Reference Manual, IBM 709/7090 Input/output Control System (PDF). IBM. p. 3. C28-6100-2. Retrieved Sep 12, 2020.

Read other articles:

Si ce bandeau n'est plus pertinent, retirez-le. Cliquez ici pour en savoir plus. Cet article ne cite aucune source et peut contenir des informations erronées (signalé en mai 2022). Si vous disposez d'ouvrages ou d'articles de référence ou si vous connaissez des sites web de qualité traitant du thème abordé ici, merci de compléter l'article en donnant les références utiles à sa vérifiabilité et en les liant à la section « Notes et références ». Trouver des sources s...

 

Bagian dari seriPendidikan di Indonesia Kementerian Pendidikan, Kebudayaan, Riset, dan Teknologi Republik Indonesia Pendidikan anak usia dini TK RA KB Pendidikan dasar (kelas 1–6) SD MI Paket A Pendidikan dasar (kelas 7–9) SMP MTs Paket B Pendidikan menengah (kelas 10–12) SMA MA SMK MAK SMA SMTK SMAK Utama Widya Pasraman Paket C Pendidikan tinggi Perguruan tinggi Akademi Akademi komunitas Institut Politeknik Sekolah tinggi Universitas Lain-lain Madrasah Pesantren Sekolah alam Sekolah ru...

 

Alif khanjariah pada lafaz Allah. Alif khanjariah (Arab: ألف_خنجرية, alif khanjariyyat) adalah tanda baca atau harakat yang dituliskan pada abjad arab sebagai diakritik atau pedoman pembacaan. Harakat ini memiliki makna bahwa huruf yang berharakat alif khanjariah harus dibaca mad fathah atau fathah yang dibaca agak panjang. Alif khanjariah ditulis layaknya garis vertikal seperti huruf alif kecil (ٰ) yang disebut juga dengan mad fathah atau alif khanjariah yang melambangkan fonem /a/...

American businessman and sports team owner Arthur BlankBlank in 2016BornArthur Morris Blank (1942-09-27) September 27, 1942 (age 81)Queens, New York City, U.S.EducationBabson College (BSBA)OccupationsHome Depotco-founderAtlanta Falcons ownerAtlanta United FC ownerphilanthropistSpouses Diana Latow (divorced 1993) Stephanie Wray ​ ​(m. 1995; div. 2014)​ Angela Macuga ​ ​(m. 2016; div. 2019)​[...

 

Sporting event delegationTonga at theParalympicsIPC codeTGANPCTonga National Paralympic CommitteeMedals Gold 0 Silver 0 Bronze 0 Total 0 Summer appearances2000200420082012201620202024 Tonga first participated at the Paralympic Games in 2000, and has sent athletes to compete in every Summer Paralympic Games since then. The country has never taken part in the Winter Paralympics. Two athletes have represented Tonga at the Paralympics: Alailupe Valeti in the shot put in 2000 and 2004, and Mounga ...

 

هذه المقالة يتيمة إذ تصل إليها مقالات أخرى قليلة جدًا. فضلًا، ساعد بإضافة وصلة إليها في مقالات متعلقة بها. (ديسمبر 2020) فاسيلي كونستانتين معلومات شخصية الميلاد 18 يناير 1998 (26 سنة)  كرايوفا  الطول 1.74 م (5 قدم 8 1⁄2 بوصة) مركز اللعب وسط الجنسية رومانيا  معلومات ا...

Chemical compound FaropenemClinical dataAHFS/Drugs.comInternational Drug NamesRoutes ofadministrationOralATC codeJ01DI03 (WHO) IdentifiersCAS Number106560-14-9 NPubChem CID65894ChemSpider59303 YUNIIF52Y83BGH3ChEBICHEBI:51257 YChEMBLChEMBL556262 YCompTox Dashboard (EPA)DTXSID0046430 Chemical and physical dataFormulaC12H15NO5SMolar mass285.31 g·mol−13D model (JSmol)Interactive image SMILES O=C2N1/C(=C(\S[C@@H]1[C@H]2[C@H](O)C)[C@@H]3OCCC3)C(=O)O InChI InChI...

 

Zakharia 13Sebagian Kitab Zakharia pada Codex Gigas, yang dibuat sekitar abad ke-13.KitabKitab ZakhariaKategoriNabi-nabi KecilBagian Alkitab KristenPerjanjian LamaUrutan dalamKitab Kristen38← pasal 12 pasal 14 → Zakharia 13 (disingkat Zak 13) adalah bagian dari Kitab Zakharia dalam Alkitab Ibrani dan Perjanjian Lama di Alkitab Kristen. Memuat Firman Allah yang disampaikan dengan perantaraan nabi Zakharia.[1][2] Teks Naskah aslinya ditulis dalam bahasa Ibrani. Pasal...

 

Mateo Kovačić Kovačić bermain untuk Chelsea pada 2019Informasi pribadiNama lengkap Mateo Kovačić[1]Tanggal lahir 6 Mei 1994 (umur 29)Tempat lahir Linz, Austria[2]Tinggi 176 cm (5 ft 9 in)[2]Posisi bermain GelandangInformasi klubKlub saat ini Manchester CityNomor 8Karier junior2000–2007 LASK Linz2007–2010 Dinamo ZagrebKarier senior*Tahun Tim Tampil (Gol)2010–2013 Dinamo Zagreb 43 (7)2013–2015 Inter Milan 80 (5)2015–2019 Real Madrid 7...

Part of a series on theCulture of Belgium History People Languages Mythology and folklore Cuisine Religion Art LiteratureBandes dessinées (Belgian comics) Music Media Radio Television Cinema Sport Monuments World Heritage Sites Symbols Flag Coat of arms National anthem  Belgium portalvte Despite its size, Belgium has a long and distinguished artistic tradition that goes back to the Middle Ages, considerably pre-dating the foundation of the current state in 1830. Art from the areas ...

 

Background of the Star Wars universe outside of the feature films Star Wars has been expanded to media other than the original films. This spin-off material is licensed and moderated by Lucasfilm, though during his involvement with the franchise Star Wars creator George Lucas reserved the right to both draw from and contradict it in his own works. Such derivative works have been produced concurrently with, between, and after the original, prequel, and sequel trilogies, as well as the spin-off...

 

Untuk salah satu marga Batak, lihat Lumban Gaol. Lumban GaolDesaDanau Toba dilihat dari Desa Lumban GaolPeta lokasi Desa Lumban GaolNegara IndonesiaProvinsiSumatera UtaraKabupatenTobaKecamatanBaligeKode pos22312Kode Kemendagri12.12.01.2010 Luas1,58 km²Jumlah penduduk1.182 jiwa (2015)Kepadatan748,10 jiwa/km² Lumban Gaol adalah salah satu desa di Kecamatan Balige, Kabupaten Toba, Provinsi Sumatera Utara, Indonesia. Pemerintahan Kepala Desa Lumban Gaol pada tahun 2015 adalah Edward Tambun...

Public university located in Kilis, Turkey Kilis 7 Aralık UniversityKilis 7 Aralık ÜniversitesiMottoAydınlık Yarınlar İçin, Kilis 7 Aralık ÜniversitesiMotto in EnglishFor a Bright Future, Kilis 7 Aralık UniversityTypePublicEstablished2007RectorProf. Dr. Mustafa Doğan Karacoşkun[1]Academic staff250Administrative staff300Students11,000[2]AddressMehmet Sanlı Mah. Doğan Güreş Paşa Bul. No:134 KİLİS / TURKEY, Kilis, TurkeyCampusUrbanColorsTurquoise and blue...

 

Governor of Illinois from 1999 to 2003 For other people named George Ryan, see George Ryan (disambiguation). George RyanRyan in the 1990s39th Governor of IllinoisIn officeJanuary 11, 1999 – January 13, 2003LieutenantCorinne WoodPreceded byJim EdgarSucceeded byRod Blagojevich36th Secretary of State of IllinoisIn officeJanuary 14, 1991 – January 11, 1999GovernorJim EdgarPreceded byJim EdgarSucceeded byJesse White42nd Lieutenant Governor of IllinoisIn officeJanuary 10, 1983...

 

Local authority for the City of Westminster in Greater London, England Westminster City CouncilTypeTypeLondon borough council LeadershipLord MayorRobert Rigby, Conservative since 15 May 2024[1] LeaderAdam Hug, Labour since 18 May 2022[2] Chief ExecutiveStuart Love since January 2018[3] StructureSeats54 councillorsPolitical groups Administration (31)   Labour (31) Opposition (23)   Conservative (23) ElectionsVoting systemFirst past the postLast electio...

Space aviation organization/institute National Aerospace Laboratory of Japan航空宇宙技術研究所 (Japanese)Kōkū Uchū Gijutsu KenkyūjoAgency overviewAbbreviationNALFormer nameNational Aeronautical LaboratoryFormedJuly 1955; 68 years ago (1955-07) (as National Aeronautical Laboratory)1963; 61 years ago (1963) (as National Aerospace Laboratory of Japan)DissolvedOctober 1, 2003; 20 years ago (2003-10-01) (merged into JAXA)...

 

United States Army officer Alan Greg RogersBorn(1967-09-21)September 21, 1967DiedJanuary 27, 2008(2008-01-27) (aged 40)Baghdad, IraqPlace of burialArlington National CemeteryAllegianceUnited States of AmericaService/branchUnited States ArmyYears of service1990–2008RankMajorUnitMilitary Transition Team, 1st Brigade, 1st Infantry Division, Fort Riley, KansasBattles/warsOperation Iraqi FreedomAwardsBronze Star (2)Purple HeartOther workAmerican Veterans for Equal Rights (AVER) Al...

 

هشام مهدوفي معلومات شخصية الميلاد 5 أغسطس 1983 (العمر 40 سنة)خريبكة الطول 1.80 م (5 قدم 11 بوصة) مركز اللعب وسط الجنسية المغرب  معلومات النادي النادي الحالي الدفاع الجديدي مسيرة الشباب سنوات فريق 1999–2001 أولمبيك خريبكة المسيرة الاحترافية1 سنوات فريق م. (هـ.) 2001–2010 أولمبيك ...

For related races, see 1930 United States gubernatorial elections. 1930 Connecticut gubernatorial election ← 1928 November 4, 1930 1932 →   Nominee Wilbur Lucius Cross Ernest E. Rogers Party Democratic Republican Popular vote 215,072 209,607 Percentage 49.91% 48.64% County resultsCross:      50–60% Rogers:      50–60% Governor before election John H. Trumbull Republican Elected Governor Wilbur Lucius Cross ...

 

Period of Irish Catholic self-government (1642–49) This article includes a list of general references, but it lacks sufficient corresponding inline citations. Please help to improve this article by introducing more precise citations. (April 2009) (Learn how and when to remove this message) Irish Catholic ConfederationComhdháil Chaitliceach na hÉireann1642–1652 Flag Great Seal Motto: Hiberni unanimes pro Deo Rege et Patria (Latin)Éireannaigh aontaithe le Dia, rí agus tír...