Changeset 00af658 in mainline for uspace/app/mkexfat/mkexfat.c


Ignore:
Timestamp:
2012-02-26T19:45:02Z (12 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
aa37d6f
Parents:
ef144ef
Message:

mkexfat: let the user specify the cluster size in Kb, not in bytes.

File:
1 edited

Legend:

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

    ref144ef r00af658  
    132132{
    133133        printf("Usage: mkexfat [options] <device>\n"
    134             "-c, --cluster-size ## Specify the cluster size\n"
    135             "-s, --fs-size ##      Specify the filesystem size\n");
     134            "-c, --cluster-size ## Specify the cluster size (Kb)\n"
     135            "-s, --fs-size ##      Specify the filesystem size (byte)\n");
    136136}
    137137
     
    739739
    740740                case 'c':
    741                         cfg.cluster_size = strtol(optarg, NULL, 10);
     741                        cfg.cluster_size = strtol(optarg, NULL, 10) * 1024;
    742742                        if (cfg.cluster_size < 4096) {
    743743                                printf(NAME ": Error, cluster size can't"
Note: See TracChangeset for help on using the changeset viewer.