Improved test FAT file

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@225 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2007-05-14 01:45:12 +00:00
parent 183f658b9d
commit d1a0415da7
1 changed files with 50 additions and 32 deletions

View File

@ -72,41 +72,59 @@
/* This array holds a compressed VFAT file system created with: /* This array holds a compressed VFAT file system created with:
* *
* /sbin/mkdosfs -C -F 32 -I -n "NuttXTestVol" -s 4 -S 512 * /sbin/mkdosfs -C -F 32 -I -n "NuttXTestVol" -S 512 -v nuttx-test.vfat 1024
* -v nuttx-test.vfat 1024 * sudo mkdir /mnt/loop
* sudo mount -o loop nuttx-test.vfat /mnt/loop
* mkdir /mnt/loop/nuttx-test
* echo "This is a test" >/mnt/loop/nuttx-test/test-file.txt
* sudo umount /mnt/loop
* gzip nuttx-test.vfat
* xxd -g 1 nuttx-test.vfat.gz >some-file
* *
* Then manually massaged from gzip to zlib format * Then manually massaged from the gzip xxd output to zlib format. See
* http://www.faqs.org/rfcs/rfc1952.html
*/ */
static const unsigned char g_vfatdata[] = static const unsigned char g_vfatdata[] =
{ {
0x08, 0x1d, 0xed, 0xdc, 0x31, 0x6b, 0x53, 0x51, 0x14, 0x07, 0xf0, 0xdb, 0x08, 0x1d, 0xed, 0xdd, 0x4d, 0x6b, 0x13, 0x41, 0x18, 0x00, 0xe0, 0x69,
0x52, 0xb4, 0x54, 0x5a, 0x9d, 0x04, 0x27, 0x0f, 0x6e, 0x2e, 0x19, 0x2a, 0x2d, 0xb6, 0x54, 0xfa, 0x71, 0x12, 0x3c, 0x39, 0x78, 0x53, 0x48, 0xa0,
0x74, 0x13, 0xcc, 0x60, 0x47, 0x91, 0x92, 0x96, 0x4e, 0xc2, 0x2b, 0x79, 0x55, 0x7a, 0x36, 0x07, 0xab, 0xa7, 0x22, 0x75, 0x5b, 0x72, 0x12, 0x52,
0xd5, 0x90, 0x98, 0x17, 0xde, 0x7b, 0x22, 0x01, 0x77, 0x47, 0xfd, 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00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0xd7, 0xf8, 0xfe, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0xff, 0xbe, 0xaf, 0x36, 0xee, 0x9c, 0x0a, 0xe1, 0xc6, 0x8b,
0xa3, 0xa5, 0xa3, 0xa5, 0x41, 0x3b, 0x88, 0x97, 0x9a, 0x61, 0x27, 0x64,
0xf9, 0xb1, 0x1b, 0xe6, 0xc2, 0xbd, 0x42, 0x7e, 0x51, 0x0b, 0x69, 0x5e,
0xf7, 0xf5, 0x72, 0x2b, 0x6b, 0x49, 0x52, 0x2e, 0xec, 0x2f, 0xc4, 0x18,
0xe7, 0x43, 0xb5, 0xf3, 0x72, 0xd0, 0xbf, 0xdf, 0x5e, 0x18, 0xe1, 0x53,
0xf1, 0xb3, 0x8a, 0xf1, 0xcc, 0x7c, 0x08, 0x07, 0xa7, 0xf3, 0x77, 0x70,
0x36, 0x7f, 0xc5, 0xe2, 0xf7, 0xe2, 0x83, 0xfe, 0xa5, 0x61, 0x42, 0x14,
0xf2, 0xfc, 0xb8, 0xb5, 0x19, 0xea, 0xa1, 0x91, 0xdf, 0x28, 0x7e, 0xc9,
0x90, 0xdd, 0xbc, 0x4e, 0xee, 0x3c, 0x48, 0x0a, 0xcb, 0xfb, 0x0b, 0x49,
0x39, 0x89, 0xe7, 0xf3, 0x63, 0x22, 0xf8, 0xd1, 0x64, 0xf4, 0x86, 0x1b,
0xf1, 0x56, 0x62, 0x96, 0xbf, 0x04, 0xec, 0x99, 0x0b, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
@ -188,10 +206,10 @@ static const unsigned char g_vfatdata[] =
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0xbb, 0x3e, 0x03
0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0x33, 0xbe, 0x03
}; };
/**************************************************************************** /****************************************************************************
* Private Functions * Private Functions
****************************************************************************/ ****************************************************************************/