The number of pages within the document is: 21
The self-declared author(s) is/are:
Original authors did not specify.
The subject is as follows:
Original authors did not specify.
The original URL is: LINK
The access date was:
2019-02-15 18:05:53.006851
Please be aware that this may be under copyright restrictions. Please send an email to admin@pharmacoengineering.com for any AI-generated issues.
The content is as follows:
42 CrashConsistency:FSCKandJournaling Aswe’veseenthusfar,thelesystemmanagesasetofdatastruc turesto implementtheexpectedabstractions:les,directories,and alloftheother metadataneededtosupportthebasicabstractionthatweexpec tfroma lesystem.Unlikemostdatastructures(forexample,thosefoun din memoryofarunningprogram),lesystemdatastructuresmust persist , i.e.,theymustsurviveoverthelonghaul,storedondevicesthat retain datadespitepowerloss(suchasharddisksorash-basedSSDs). Onemajorchallengefacedbyalesystemishowtoupdatepersis – tentdatastructuresdespitethepresenceofa powerloss or systemcrash . Specically,whathappensif,rightinthemiddleofupdatingon -disk structures,someonetripsoverthepowercordandthemachineloses power?Ortheoperatingsystemencountersabugandcrashes?Bec ause ofpowerlossesandcrashes,updatingapersistentdatastructu recanbe quitetricky,andleadstoanewandinterestingprobleminle system implementation,knownasthe crash-consistencyproblem . Thisproblemisquitesimpletounderstand.Imagineyouhaveto up- datetwoon-diskstructures, A and B ,inordertocompleteaparticular operation.Becausethediskonlyservicesasinglerequestatat ime,one oftheserequestswillreachthediskrst(either A or B ).Ifthesystem crashesorlosespowerafteronewritecompletes,theon-diskstruc ture willbeleftinan inconsistent state.Andthus,wehaveaproblemthatall lesystemsneedtosolve: T HE C RUX :H OW T O U PDATE T HE D ISK D ESPITE C RASHES Thesystemmaycrashorlosepowerbetweenanytwowrites,and thustheon-diskstatemayonlypartiallygetupdated.Afterth ecrash, thesystembootsandwishestomountthelesystemagain(inorder to accesslesandsuch).Giventhatcrashescanoccuratarbitra rypoints intime,howdoweensurethelesystemkeepstheon-diskimagei na reasonablestate? 1
Please note all content on this page was automatically generated via our AI-based algorithm (aCEUFtJWtHZhzFx5cqGb). Please let us know if you find any errors.