Ignore:
Timestamp:
Sep 6, 2017, 8:12:06 AM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
34dda604
Parents:
731e68a3
git-author:
Sebastian Huber <sebastian.huber@…> (09/06/17 08:12:06)
git-committer:
Sebastian Huber <sebastian.huber@…> (09/06/17 08:20:46)
Message:

dosfs: Support a cluster size of 64KiB

Close #3003.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/fstests/fsdosfsformat01/init.c

    r731e68a3 rfae59c9  
    470470  rv = unlink( dev_name );
    471471  rtems_test_assert( rv == 0 );
     472
     473  /* FAT32 with cluster size of 64KiB */
     474
     475  sc = rtems_sparse_disk_create_and_register(
     476    dev_name,
     477    SECTOR_SIZE,
     478    1024,
     479    16777216, /* 8GiB */
     480    0
     481  );
     482  rtems_test_assert( sc == RTEMS_SUCCESSFUL );
     483
     484  memset( &rqdata, 0, sizeof( rqdata ) );
     485  rqdata.sectors_per_cluster = 128;
     486  rqdata.quick_format = true;
     487  rv = msdos_format( dev_name, &rqdata );
     488  rtems_test_assert( rv == 0 );
     489
     490  test_disk_params(
     491    dev_name,
     492    mount_dir,
     493    SECTOR_SIZE,
     494    SECTOR_SIZE * rqdata.sectors_per_cluster,
     495    rqdata.sectors_per_cluster
     496  );
     497
     498  rv = unlink( dev_name );
     499  rtems_test_assert( rv == 0 );
    472500}
    473501
Note: See TracChangeset for help on using the changeset viewer.