Artifact 5b04e66b64b60a152e5ab10099f5b254152af516:
0000: 41 70 70 46 53 0a 3d 3d 3d 3d 3d 0a 49 74 27 73 AppFS.=====.It's
0010: 20 73 6f 72 74 20 6f 66 20 6c 69 6b 65 20 4c 61 sort of like La
0020: 7a 79 46 53 2e 0a 0a 0a 50 61 74 68 73 0a 2d 2d zyFS....Paths.--
0030: 2d 2d 2d 0a 20 20 20 20 41 70 70 46 53 20 73 68 ---. AppFS sh
0040: 6f 75 6c 64 20 6e 6f 72 6d 61 6c 6c 79 20 62 65 ould normally be
0050: 20 6d 6f 75 6e 74 65 64 20 6f 6e 20 22 2f 6f 70 mounted on "/op
0060: 74 2f 61 70 70 66 73 22 2e 0a 0a 20 20 20 20 2f t/appfs"... /
0070: 6f 70 74 2f 61 70 70 66 73 2f 68 6f 73 74 6e 61 opt/appfs/hostna
0080: 6d 65 0a 20 20 20 20 09 46 65 74 63 68 65 73 3a me. .Fetches:
0090: 20 68 74 74 70 3a 2f 2f 68 6f 73 74 6e 61 6d 65 http://hostname
00a0: 2f 61 70 70 66 73 2f 69 6e 64 65 78 0a 20 20 20 /appfs/index.
00b0: 20 09 43 6f 6e 74 61 69 6e 73 20 43 53 56 20 66 .Contains CSV f
00c0: 69 6c 65 3a 20 68 61 73 68 2c 65 78 74 72 61 44 ile: hash,extraD
00d0: 61 74 61 0a 20 20 20 20 09 46 65 74 63 68 65 73 ata. .Fetches
00e0: 3a 20 68 74 74 70 3a 2f 2f 68 6f 73 74 6e 61 6d : http://hostnam
00f0: 65 2f 61 70 70 66 73 2f 73 68 61 31 2f 3c 68 61 e/appfs/sha1/<ha
0100: 73 68 3e 0a 20 20 20 20 09 43 6f 6e 74 61 69 6e sh>. .Contain
0110: 73 20 43 53 56 20 66 69 6c 65 3a 20 70 61 63 6b s CSV file: pack
0120: 61 67 65 2c 76 65 72 73 69 6f 6e 2c 6f 73 2c 63 age,version,os,c
0130: 70 75 41 72 63 68 2c 73 68 61 31 2c 69 73 4c 61 puArch,sha1,isLa
0140: 74 65 73 74 0a 0a 20 20 20 20 2f 6f 70 74 2f 61 test.. /opt/a
0150: 70 70 66 73 2f 68 6f 73 74 6e 61 6d 65 2f 70 61 ppfs/hostname/pa
0160: 63 6b 61 67 65 2f 6f 73 2d 63 70 75 41 72 63 68 ckage/os-cpuArch
0170: 2f 76 65 72 73 69 6f 6e 0a 20 20 20 20 2f 6f 70 /version. /op
0180: 74 2f 61 70 70 66 73 2f 68 6f 73 74 6e 61 6d 65 t/appfs/hostname
0190: 2f 73 68 61 31 2f 0a 20 20 20 20 09 46 65 74 63 /sha1/. .Fetc
01a0: 68 65 73 3a 20 68 74 74 70 3a 2f 2f 68 6f 73 74 hes: http://host
01b0: 6e 61 6d 65 2f 61 70 70 66 73 2f 73 68 61 31 2f name/appfs/sha1/
01c0: 3c 73 68 61 31 3e 0a 20 20 20 20 09 43 6f 6e 74 <sha1>. .Cont
01d0: 61 69 6e 73 20 43 53 56 20 66 69 6c 65 3a 0a 20 ains CSV file:.
01e0: 20 20 20 09 09 74 79 70 65 2c 74 69 6d 65 2c 65 ..type,time,e
01f0: 78 74 72 61 44 61 74 61 2c 6e 61 6d 65 0a 20 20 xtraData,name.
0200: 20 20 09 09 74 79 70 65 20 3d 3d 20 64 69 72 65 ..type == dire
0210: 63 74 6f 72 79 3b 20 65 78 74 72 61 44 61 74 61 ctory; extraData
0220: 20 3d 20 28 6e 75 6c 6c 29 0a 20 20 20 20 09 09 = (null). ..
0230: 74 79 70 65 20 3d 3d 20 73 79 6d 6c 69 6e 6b 3b type == symlink;
0240: 20 65 78 74 72 61 44 61 74 61 20 3d 20 73 6f 75 extraData = sou
0250: 72 63 65 0a 20 20 20 20 09 09 74 79 70 65 20 3d rce. ..type =
0260: 3d 20 66 69 6c 65 3b 20 65 78 74 72 61 44 61 74 = file; extraDat
0270: 61 20 3d 20 73 69 7a 65 2c 73 68 61 31 0a 0a 20 a = size,sha1..
0280: 20 20 20 2f 6f 70 74 2f 61 70 70 66 73 2f 68 6f /opt/appfs/ho
0290: 73 74 6e 61 6d 65 2f 7b 73 68 61 31 2c 70 61 63 stname/{sha1,pac
02a0: 6b 61 67 65 2f 6f 73 2d 63 70 75 41 72 63 68 2f kage/os-cpuArch/
02b0: 76 65 72 73 69 6f 6e 7d 2f 66 69 6c 65 0a 20 20 version}/file.
02c0: 20 20 09 46 65 74 63 68 65 73 3a 20 68 74 74 70 .Fetches: http
02d0: 3a 2f 2f 68 6f 73 74 6e 61 6d 65 2f 61 70 70 66 ://hostname/appf
02e0: 73 2f 73 68 61 31 2f 3c 73 68 61 31 3e 0a 0a 44 s/sha1/<sha1>..D
02f0: 61 74 61 62 61 73 65 0a 2d 2d 2d 2d 2d 2d 2d 2d atabase.--------
0300: 0a 20 20 20 20 68 6f 73 74 6e 61 6d 65 5f 74 6f . hostname_to
0310: 5f 70 61 63 6b 61 67 65 73 28 68 6f 73 74 6e 61 _packages(hostna
0320: 6d 65 2c 20 73 68 61 31 2c 20 70 61 63 6b 61 67 me, sha1, packag
0330: 65 2c 20 76 65 72 73 69 6f 6e 2c 20 6f 73 2c 20 e, version, os,
0340: 63 70 75 41 72 63 68 2c 20 69 73 4c 61 74 65 73 cpuArch, isLates
0350: 74 29 0a 20 20 20 20 70 61 63 6b 61 67 65 5f 74 t). package_t
0360: 6f 5f 66 69 6c 65 73 28 70 61 63 6b 61 67 65 5f o_files(package_
0370: 73 68 61 31 2c 20 74 79 70 65 2c 20 74 69 6d 65 sha1, type, time
0380: 2c 20 73 6f 75 72 63 65 2c 20 73 69 7a 65 2c 20 , source, size,
0390: 66 69 6c 65 5f 73 68 61 31 2c 20 6e 61 6d 65 29 file_sha1, name)
03a0: 0a .