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

Changeset dccf721 in mainline


Ignore:
Timestamp:
2010-01-09T21:05:35Z (12 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master
Children:
08232ee
Parents:
336d2faa
Message:

Add mkfat utility. Fix block writing in libblock and file_bd driver.

Files:
5 added
4 edited

Legend:

Unmodified
Added
Removed
  • boot/Makefile.common

    r336d2faa rdccf721  
    6060        $(USPACEDIR)/app/getterm/getterm \
    6161        $(USPACEDIR)/app/klog/klog \
     62        $(USPACEDIR)/app/mkfat/mkfat \
    6263        $(USPACEDIR)/app/redir/redir \
    6364        $(USPACEDIR)/app/tester/tester \
  • uspace/Makefile

    r336d2faa rdccf721  
    3838        app/init \
    3939        app/klog \
     40        app/mkfat \
    4041        app/redir \
    4142        app/tester \
  • uspace/lib/libblock/libblock.c

    r336d2faa rdccf721  
    714714
    715715        memcpy(devcon->comm_area, data, devcon->pblock_size * cnt);
    716         rc = read_blocks(devcon, ba, cnt);
     716        rc = write_blocks(devcon, ba, cnt);
    717717
    718718        fibril_mutex_unlock(&devcon->comm_area_lock);
  • uspace/srv/bd/file_bd/file_bd.c

    r336d2faa rdccf721  
    213213
    214214        fseek(img, ba * block_size, SEEK_SET);
    215         n_wr = fread(buf, block_size, cnt, img);
     215        n_wr = fwrite(buf, block_size, cnt, img);
    216216
    217217        if (ferror(img) || n_wr < cnt) {
Note: See TracChangeset for help on using the changeset viewer.