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 past_end_of_dir(rdisk, fsck, newfs, newfs_opts, True)
111 fat_bad_0_or_1(rdisk, fsck, newfs, newfs_opts)
112 fat_mark_clean_corrupt(rdisk, fsck, newfs, newfs_opts)
113 fat_mark_clean_ok(rdisk, fsck, newfs, newfs_opts)
114 file_4GB(rdisk, fsck, newfs, newfs_opts)
115 file_4GB_excess_clusters(rdisk, fsck, newfs, newfs_opts)
116 directory_garbage(rdisk, fsck, newfs, newfs_opts)
131 def test_fat16(dir, fsck, newfs):
157 test_quick(rdisk, fsck, newfs, newfs_opts)
158 test_bad_args(rdisk, fsck, newfs, newfs_opts)
159 test_maxmem(rdisk, fsck, newfs, newfs_opts)
160 test_empty(rdisk, fsck, newfs, newfs_opts)
161 test_boot_sector(rdisk, fsck, newfs, newfs_opts)
162 fat_too_small(rdisk, fsck, newfs, newfs_opts)
163 orphan_clusters(rdisk, fsck, newfs, newfs_opts)
164 file_excess_clusters(rdisk, fsck, newfs, newfs_opts)
165 file_bad_clusters(rdisk, fsck, newfs, newfs_opts)
166 dir_bad_start(rdisk, fsck, newfs, newfs_opts)
167 dir_size_dots(rdisk, fsck, newfs, newfs_opts)
168 long_name(rdisk, fsck, newfs, newfs_opts)
169 past_end_of_dir(rdisk, fsck, newfs, newfs_opts)
170 past_end_of_dir(rdisk, fsck, newfs, newfs_opts, True)
171 fat_bad_0_or_1(rdisk, fsck, newfs, newfs_opts)
172 fat_mark_clean_corrupt(rdisk, fsck, newfs, newfs_opts)
173 fat_mark_clean_ok(rdisk, fsck, newfs, newfs_opts)
174 directory_garbage(rdisk, fsck, newfs, newfs_opts)
189 def test_fat12(dir, fsck, newfs):
215 test_quick(rdisk, fsck, newfs, newfs_opts)
216 test_bad_args(rdisk, fsck, newfs, newfs_opts)
217 test_maxmem(rdisk, fsck, newfs, newfs_opts)
218 test_empty(rdisk, fsck, newfs, newfs_opts)
219 test_boot_sector(rdisk, fsck, newfs, newfs_opts)
220 fat_too_small(rdisk, fsck, newfs, newfs_opts)
221 orphan_clusters(rdisk, fsck, newfs, newfs_opts)
222 file_excess_clusters(rdisk, fsck, newfs, newfs_opts)
223 file_bad_clusters(rdisk, fsck, newfs, newfs_opts)
224 dir_bad_start(rdisk, fsck, newfs, newfs_opts)
225 dir_size_dots(rdisk, fsck, newfs, newfs_opts)
226 long_name(rdisk, fsck, newfs, newfs_opts)
227 past_end_of_dir(rdisk, fsck, newfs, newfs_opts)
228 past_end_of_dir(rdisk, fsck, newfs, newfs_opts, True)
229 fat_bad_0_or_1(rdisk, fsck, newfs, newfs_opts)
230 directory_garbage(rdisk, fsck, newfs, newfs_opts)
245 def test_empty(disk, fsck, newfs, newfs_opts):
252 # fsck the disk
254 launch([fsck, '-n', disk])
259 def orphan_clusters(disk, fsck, newfs, newfs_opts):
276 launch([fsck, '-n', disk])
279 launch([fsck, '-p', disk])
293 def file_excess_clusters(disk, fsck, newfs, newfs_opts):
336 launch([fsck, '-n', disk])
339 launch([fsck, '-y', disk])
353 def file_bad_clusters(disk, fsck, newfs, newfs_opts):
406 launch([fsck, '-n', disk])
409 launch([fsck, '-y', disk])
421 def dir_bad_start(disk, fsck, newfs, newfs_opts):
447 launch([fsck, '-n', disk])
450 launch([fsck, '-y', disk])
458 def root_bad_start(disk, fsck, newfs, newfs_opts):
483 launch([fsck, '-n', disk])
487 launch([fsck, '-y', disk])
500 def root_bad_first_cluster(disk, fsck, newfs, newfs_opts):
513 launch([fsck, '-n', disk])
516 launch([fsck, '-y', disk])
527 def dir_size_dots(disk, fsck, newfs, newfs_opts):
571 launch([fsck, '-n', disk])
574 launch([fsck, '-y', disk])
577 def long_name(disk, fsck, newfs, newfs_opts):
662 launch([fsck, '-n', disk])
665 launch([fsck, '-y', disk])
668 def past_end_of_dir(disk, fsck, newfs, newfs_opts, multiple_clusters=False):
723 launch([fsck, '-n', disk])
726 launch([fsck, '-y', disk])
732 def fat_bad_0_or_1(disk, fsck, newfs, newfs_opts):
747 launch([fsck, '-n', disk])
750 launch([fsck, '-y', disk])
757 def fat_mark_clean_corrupt(disk, fsck, newfs, newfs_opts):
778 launch([fsck, '-n', disk])
781 launch([fsck, '-y', disk])
806 def fat_mark_clean_ok(disk, fsck, newfs, newfs_opts):
825 stdout, stderr = launch([fsck, '-n', disk], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
829 stdout, stderr = launch([fsck, '-y', disk], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
856 def file_4GB(disk, fsck, newfs, newfs_opts):
877 launch([fsck, '-n', disk])
889 def file_4GB_excess_clusters(disk, fsck, newfs, newfs_opts):
912 launch([fsck, '-n', disk])
915 launch([fsck, '-y', disk])
916 launch([fsck, '-n', disk])
927 def test_quick(disk, fsck, newfs, newfs_opts):
932 launch([fsck, '-q', disk])
953 launch([fsck, '-q', disk])
963 def test_maxmem(disk, fsck, newfs, newfs_opts):
965 launch([fsck, '-M', '1m', disk])
966 launch([fsck, '-M', '900k', disk])
971 def test_bad_args(disk, fsck, newfs, newfs_opts):
975 launch([fsck, '-M', 'foo', disk])
982 launch([fsck, '-p', '-M', 'foo', disk])
989 launch([fsck, '-M', '1x', disk])
996 launch([fsck, '-z', disk])
1003 launch([fsck])
1014 def test_boot_sector(disk, fsck, newfs, newfs_opts):
1037 launch([fsck, '-n', disk])
1047 def test_boot_fat32(disk, fsck, newfs, newfs_opts):
1065 launch([fsck, '-n', disk])
1074 def test_fsinfo(disk, fsck, newfs, newfs_opts):
1106 launch([fsck, '-n', disk])
1112 launch([fsck, '-y', disk])
1113 launch([fsck, '-n', disk])
1121 def fat_too_small(disk, fsck, newfs, newfs_opts):
1146 launch([fsck, '-y', disk]) # Need a way to test for expected output
1147 launch([fsck, '-n', disk])
1154 def directory_garbage(disk, fsck, newfs, newfs_opts):
1191 launch([fsck, '-n', disk])
1197 launch([fsck, '-y', disk])
1198 launch([fsck, '-n', disk])
1220 fsck = 'fsck_msdos'
1224 fsck = sys.argv[1]
1235 test_fat32(dir, fsck, newfs)
1236 test_fat16(dir, fsck, newfs)
1237 test_fat12(dir, fsck, newfs)