#1251 closed defect

fat_file_truncate

Reported by: zhongho chen Owned by: thomas.doerfler
Priority: normal Milestone: 4.7
Component: fs/fat Version: 4.7
Severity: normal Keywords:
Cc: joel.sherrill@…, thomas.doerfler@…, medivhc@… Blocked By:
Blocking:

Description

If a FAT non-directory file is truncate to zero, the first cluster of this file should set to zero. Otherwise, the file is considered as damaged a file.

Change History (5)

comment:1 Changed on 08/09/07 at 16:10:36 by Joel Sherrill

Cc: thomas.doerfler@… joel.sherrill@… added

comment:2 Changed on 08/09/07 at 19:06:58 by thomas.doerfler

Owner: changed from Joel Sherrill to thomas.doerfler

comment:3 Changed on 08/07/11 at 14:25:27 by Xiang Cui

Cc: Xiang Cui added

DOSFS fails in fsrdwr test in fstests.

215 /*
216 * Create an empty file
217 */
218 fd = creat (name01, mode);
219 status = close (fd);
220 rtems_test_assert (status == 0);
221
222 /*
223 * Truncate it to a valid size
224 */
225 status = truncate (name01, good_size);
226 rtems_test_assert (status == 0);
227
228 /*
229 * Verify the size and the data
230 */
231 status = stat (name01, &statbuf);
232 rtems_test_assert (status == 0);
233 rtems_test_assert (good_size == statbuf.st_size);

comment:4 Changed on 11/20/14 at 03:15:22 by Chris Johns

Resolution: wontfix
Status: newclosed

comment:5 Changed on 10/10/17 at 06:50:58 by Sebastian Huber

Component: fsfs/fat
Note: See TracTickets for help on using tickets.