43ROCSTOR‐ROCPRO850usermanual
HFSPlusorHFS+
ThisisafilesystemdevelopedbyAppleInc.toreplacetheirHierarchicalFileSystem(HFS)as
theprimaryfilesystemusedinMacintoshcomputers(orothersystemsrunningMacOS).Itis
alsooneoftheformatsusedbytheiPoddigitalmusicplayer.HFSPlusisalsoreferredtoasMac
OSExtended(or,erroneously,“HFSExtended”),whereitspredecessor,HFSisalsoreferredto
asMacOSStandard(or,erroneously,as“HFSStandard”).Duringdevelopment,Applereferred
tothisfile
systemwiththecodenameSequoia.
HFSPlusisanimprovedversionofHFS,supportingmuchlargerfiles(blockaddressesare32‐bit
lengthinsteadof16‐bit)andusingUnicode(insteadofMacOSRomanoranyofseveralother
charactersets)fornamingtheitems(files,folders).Nameswere
normalizedtoaformvery
nearlythesameasNFD(therearesomeminordifferencesderivedfromthefactthattheHFS
PlusformatwasfinalizedbeforeUnicodehadstandardizedtheNFDformat).HFSPluspermits
filenamesupto255UTF‐16charactersinlength,andn‐forkedfilessimilartoNTFS,though
almostnosoftwaretakesadvantageofforksotherthanthedataforkandresourcefork.HFS
Plusalsousesafull32‐bitallocationmappingtable,ratherthanHFS’s16bits.Thiswasaserious
limitationofHFS,meaningthatnodiskcouldsupportmorethan65,536allocationblocksunder
HFS.Whendisksweresmall,thiswasoflittleconsequence,butaslarger‐capacitydrives
becameavailable,itmeantthatthesmallestamountofspacethatanyfilecouldoccupy(a
singleallocationblock)becameexcessivelylarge,wastingsignificantamountsofspace.For
example,ona1GBdisk,theallocationblocksizeunderHFSis16KB,soevena1bytefilewould
takeup16KBofdiskspace.
HFSPlusvolumesaredividedintosectors(calledlogicalblocksinHFS),thatareusually512
bytesinsize.Thesesectorsarethengroupedtogetherintoallocationblockswhichcancontain
oneormoresectors.Thenumberofallocationblocksdependsonthetotalsizeofthevolume.
HFSPlususesalargervaluetoaddressallocationblocksthanHFS,32bitsratherthan16bits.
Thismeansitcanaccess4,294,967,296(=2
32
)allocationblocksratherthanthe65,536(=2
16
)
allocationblocksavailabletoHFS.