Lines Matching defs:fsck

69 def test_fat32(dir, fsck, newfs):	
93 test_quick(rdisk, fsck, newfs, newfs_opts)
94 test_bad_args(rdisk, fsck, newfs, newfs_opts)
95 test_maxmem(rdisk, fsck, newfs, newfs_opts)
96 test_empty(rdisk, fsck, newfs, newfs_opts)
97 test_boot_sector(rdisk, fsck, newfs, newfs_opts)
98 test_boot_fat32(rdisk, fsck, newfs, newfs_opts) # FAT32 only!
99 test_fsinfo(rdisk, fsck, newfs, newfs_opts) # FAT32 only!
100 fat_too_small(rdisk, fsck, newfs, newfs_opts)
101 orphan_clusters(rdisk, fsck, newfs, newfs_opts)
102 file_excess_clusters(rdisk, fsck, newfs, newfs_opts)
103 file_bad_clusters(rdisk, fsck, newfs, newfs_opts)
104 dir_bad_start(rdisk, fsck, newfs, newfs_opts)
105 root_bad_start(rdisk, fsck, newfs, newfs_opts) # FAT32 only!
106 root_bad_first_cluster(rdisk, fsck, newfs, newfs_opts) # FAT32 only!
107 dir_size_dots(rdisk, fsck, newfs, newfs_opts)
108 long_name(rdisk, fsck, newfs, newfs_opts)
109 past_end_of_dir(rdisk, fsck, newfs, newfs_opts)
110 fat_bad_0_or_1(rdisk, fsck, newfs, newfs_opts)
111 fat_mark_clean_corrupt(rdisk, fsck, newfs, newfs_opts)
112 fat_mark_clean_ok(rdisk, fsck, newfs, newfs_opts)
113 file_4GB(rdisk, fsck, newfs, newfs_opts)
114 file_4GB_excess_clusters(rdisk, fsck, newfs, newfs_opts)
129 def test_fat16(dir, fsck, newfs):
155 test_quick(rdisk, fsck, newfs, newfs_opts)
156 test_bad_args(rdisk, fsck, newfs, newfs_opts)
157 test_maxmem(rdisk, fsck, newfs, newfs_opts)
158 test_empty(rdisk, fsck, newfs, newfs_opts)
159 test_boot_sector(rdisk, fsck, newfs, newfs_opts)
160 fat_too_small(rdisk, fsck, newfs, newfs_opts)
161 orphan_clusters(rdisk, fsck, newfs, newfs_opts)
162 file_excess_clusters(rdisk, fsck, newfs, newfs_opts)
163 file_bad_clusters(rdisk, fsck, newfs, newfs_opts)
164 dir_bad_start(rdisk, fsck, newfs, newfs_opts)
165 dir_size_dots(rdisk, fsck, newfs, newfs_opts)
166 long_name(rdisk, fsck, newfs, newfs_opts)
167 past_end_of_dir(rdisk, fsck, newfs, newfs_opts)
168 fat_bad_0_or_1(rdisk, fsck, newfs, newfs_opts)
169 fat_mark_clean_corrupt(rdisk, fsck, newfs, newfs_opts)
170 fat_mark_clean_ok(rdisk, fsck, newfs, newfs_opts)
185 def test_fat12(dir, fsck, newfs):
211 test_quick(rdisk, fsck, newfs, newfs_opts)
212 test_bad_args(rdisk, fsck, newfs, newfs_opts)
213 test_maxmem(rdisk, fsck, newfs, newfs_opts)
214 test_empty(rdisk, fsck, newfs, newfs_opts)
215 test_boot_sector(rdisk, fsck, newfs, newfs_opts)
216 fat_too_small(rdisk, fsck, newfs, newfs_opts)
217 orphan_clusters(rdisk, fsck, newfs, newfs_opts)
218 file_excess_clusters(rdisk, fsck, newfs, newfs_opts)
219 file_bad_clusters(rdisk, fsck, newfs, newfs_opts)
220 dir_bad_start(rdisk, fsck, newfs, newfs_opts)
221 dir_size_dots(rdisk, fsck, newfs, newfs_opts)
222 long_name(rdisk, fsck, newfs, newfs_opts)
223 past_end_of_dir(rdisk, fsck, newfs, newfs_opts)
224 fat_bad_0_or_1(rdisk, fsck, newfs, newfs_opts)
239 def test_empty(disk, fsck, newfs, newfs_opts):
246 # fsck the disk
248 launch([fsck, '-n', disk])
253 def orphan_clusters(disk, fsck, newfs, newfs_opts):
270 launch([fsck, '-n', disk])
273 launch([fsck, '-p', disk])
287 def file_excess_clusters(disk, fsck, newfs, newfs_opts):
330 launch([fsck, '-n', disk])
333 launch([fsck, '-y', disk])
347 def file_bad_clusters(disk, fsck, newfs, newfs_opts):
400 launch([fsck, '-n', disk])
403 launch([fsck, '-y', disk])
415 def dir_bad_start(disk, fsck, newfs, newfs_opts):
441 launch([fsck, '-n', disk])
444 launch([fsck, '-y', disk])
452 def root_bad_start(disk, fsck, newfs, newfs_opts):
477 launch([fsck, '-n', disk])
481 launch([fsck, '-y', disk])
494 def root_bad_first_cluster(disk, fsck, newfs, newfs_opts):
507 launch([fsck, '-n', disk])
510 launch([fsck, '-y', disk])
521 def dir_size_dots(disk, fsck, newfs, newfs_opts):
565 launch([fsck, '-n', disk])
568 launch([fsck, '-y', disk])
571 def long_name(disk, fsck, newfs, newfs_opts):
656 launch([fsck, '-n', disk])
659 launch([fsck, '-y', disk])
662 def past_end_of_dir(disk, fsck, newfs, newfs_opts):
703 launch([fsck, '-n', disk])
706 launch([fsck, '-y', disk])
712 def fat_bad_0_or_1(disk, fsck, newfs, newfs_opts):
727 launch([fsck, '-n', disk])
730 launch([fsck, '-y', disk])
737 def fat_mark_clean_corrupt(disk, fsck, newfs, newfs_opts):
758 launch([fsck, '-n', disk])
761 launch([fsck, '-y', disk])
786 def fat_mark_clean_ok(disk, fsck, newfs, newfs_opts):
805 stdout, stderr = launch([fsck, '-n', disk], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
809 stdout, stderr = launch([fsck, '-y', disk], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
836 def file_4GB(disk, fsck, newfs, newfs_opts):
857 launch([fsck, '-n', disk])
869 def file_4GB_excess_clusters(disk, fsck, newfs, newfs_opts):
892 launch([fsck, '-n', disk])
895 launch([fsck, '-y', disk])
896 launch([fsck, '-n', disk])
907 def test_quick(disk, fsck, newfs, newfs_opts):
912 launch([fsck, '-q', disk])
933 launch([fsck, '-q', disk])
943 def test_maxmem(disk, fsck, newfs, newfs_opts):
945 launch([fsck, '-M', '1m', disk])
946 launch([fsck, '-M', '900k', disk])
951 def test_bad_args(disk, fsck, newfs, newfs_opts):
955 launch([fsck, '-M', 'foo', disk])
962 launch([fsck, '-p', '-M', 'foo', disk])
969 launch([fsck, '-M', '1x', disk])
976 launch([fsck, '-z', disk])
983 launch([fsck])
994 def test_boot_sector(disk, fsck, newfs, newfs_opts):
1017 launch([fsck, '-n', disk])
1027 def test_boot_fat32(disk, fsck, newfs, newfs_opts):
1045 launch([fsck, '-n', disk])
1054 def test_fsinfo(disk, fsck, newfs, newfs_opts):
1085 launch([fsck, '-y', disk])
1086 launch([fsck, '-n', disk])
1094 def fat_too_small(disk, fsck, newfs, newfs_opts):
1119 launch([fsck, '-y', disk]) # Need a way to test for expected output
1120 launch([fsck, '-n', disk])
1133 fsck = 'fsck_msdos'
1137 fsck = sys.argv[1]
1148 test_fat32(dir, fsck, newfs)
1149 test_fat16(dir, fsck, newfs)
1150 test_fat12(dir, fsck, newfs)