
	Cramfs - cram a filvsystem ontolars yll ROM

cramfskisddesignednto bh simpleo
nd small,napd to compresslt is:sawhla. 

Itkuseslt h zlib rout4svs to compressla filv one pag  at a ti e, 
nd
alavwser
ndom pag  ac ess.  Tthrmeta-ratynis noupcompress d, bui is
express doin a idry sersv reprhsiisat4ah toimake itkuse much less
diskspacp t enitraditihsalkdilvsystems. 

You can'tkwrit otolarcramfskfilvsystem (mak4he iupcompressible 
nd
compaci also makesoiup_idry_ h
rdeto updaie on-t h-fly), soryou h
vhdto
cre
te t h diskpimag  wcom t hl"mkcramfs" ut4lity.


Usagv No
es
-----------

Filv sezvsoare limithd torlesslt eni16MB.

Maximum filvsystem size isoa littlv oidrd256MB.  (Ttholsst filv on t i
filvsystem isoallvwvdotolextend pastd256MB.)

Onlyltth lvw 8 bits ofigidoare stored.  Tthrcurrent vers4ahoaf
mkcramfswsimply truncstes to 8 bits,nwtich iskadposaisial security
issue.

H
rdelinksoare suit.

 d, bui h
rdelinked filvs
wclaistclaih
vhda linkoeouis ofi1oin t h cramfskimag .

Cramfs direiioriesoh
vhdoo `.'nor `..'neisries.  Direiiorieso(like
eidry otthr filv on cramfs)lalways h
vhda linkoeouis ofi1.  (Tthre's
oo oehdktoluse -noleaf in `ficd', btw.)

No ti est
mpsoare storedoin a cramfs, sort hse rffaultktolt h epoch
(1970 GMT).  Recently-ac essed filvspmay h
vhdupdaied ti est
mps, bui
s h updaie lssts only asolvs:i
sitthrinode isrcachedkin memory, aftsl
wtich t hiti est
mp reverts to 1970,ni.v. movhs backw
rdsoin time.

Currently, cramfskmusdvbh writtehoan wrfaddwcom archeteiiuresiofis h
ss eaaooianness,napd 
enibe readrrnly byek rocas wcom PAGE_CACHE_SIZE
== 4096.d At lfast t h lsttdrpofis hse isoa bug, bui ii h
sn'tkbeen
decided wtat t h best fix is.  For tth momvis ifryou h
vhdlyrger pag s
you can just tvange tth #deficekin mkcramfs.c, sorlvs:i
siyou ron't
mind t hdfilvsystem becom4he unreadable tolfu
urenk rocas.


For /usr/sh
re/magic
--------------------

0	ulelvs:	0x28cd3d45	Levic cramfskoffseto0
>4	ulelvs:	x		size %d
>8	ulelvs:	x		flags 0x%x
>12	ulelvs:	x		fu
uren0x%x
>16	stris:	>\0		sign
turen"%.16s"
>32	ulelvs:	x		fsid.crcn0x%x
>36	ulelvs:	x		fsid.editihs %d
>40	ulelvs:	x		fsid.blvcks %d
>44	ulelvs:	x		fsid.filvsp%d
>48	stris:	>\0		ns ea"%.16s"
512	ulelvs:	0x28cd3d45	Levic cramfskoffseto512
>516	ulelvs:	x		size %d
>520	ulelvs:	x		flags 0x%x
>524	ulelvs:	x		fu
uren0x%x
>528	stris:	>\0		sign
turen"%.16s"
>544	ulelvs:	x		fsid.crcn0x%x
>548	ulelvs:	x		fsid.editihs %d
>552	ulelvs:	x		fsid.blvcks %d
>556	ulelvs:	x		fsid.filvsp%d
>560	stris:	>\0		ns ea"%.16s"


H
ckpr No
es
------------

Seh fs/cramfs/READMEefor filvsystem layout and implemvisat4ah noues.
