#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 Aug 9, 2007 at 4:10:36 PM by Joel Sherrill

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

comment:2 Changed on Aug 9, 2007 at 7:06:58 PM by thomas.doerfler

Owner: changed from Joel Sherrill to thomas.doerfler

comment:3 Changed on Aug 7, 2011 at 2:25:27 PM 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 Nov 20, 2014 at 3:15:22 AM by Chris Johns

Resolution: wontfix
Status: newclosed

comment:5 Changed on Oct 10, 2017 at 6:50:58 AM by Sebastian Huber

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