Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 3f6d4ea in mainline


Ignore:
Timestamp:
2012-02-19T17:45:56Z (8 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
master
Children:
50e754e
Parents:
6cf9aeb
Message:

mkexfat: write the VBR and the VBR-backup on disk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/mkexfat/mkexfat.c

    r6cf9aeb r3f6d4ea  
    232232
    233233        if (cfg.sector_size > 4096) {
    234                 printf(NAME ":Error, sector size can't be greater" \
     234                printf(NAME ": Error, sector size can't be greater" \
    235235                    " than 4096 bytes.\n");
    236236                return 2;
     
    252252        vbr_initialize(&vbr, &cfg);
    253253
     254        /* Write the VBR on disk */
     255        rc = block_write_direct(service_id, 0, 1, &vbr);
     256        if (rc != EOK) {
     257                printf(NAME ": Error, failed to write the VBR on disk\n");
     258                return 2;
     259        }
     260
     261        /* Write the VBR backup on disk */
     262        rc = block_write_direct(service_id, 1, 1, &vbr);
     263        if (rc != EOK) {
     264                printf(NAME ": Error, failed to write the VBR" \
     265                    " backup on disk\n");
     266                return 2;
     267        }
    254268
    255269        return 0;
Note: See TracChangeset for help on using the changeset viewer.