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

Changeset 4ba3535 in mainline


Ignore:
Timestamp:
2011-08-14T19:38:44Z (10 years ago)
Author:
Oleg Romanenko <romanenko.oleg@…>
Branches:
lfn, master
Children:
d9aeab3
Parents:
d8df2fb
Message:

exFAT: implement exfat_directory_erase_file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/exfat/exfat_directory.c

    rd8df2fb r4ba3535  
    328328int exfat_directory_erase_file(exfat_directory_t *di, aoff64_t pos)
    329329{
    330         /* TODO */
     330        int rc, count;
     331        exfat_dentry_t *de;
     332
     333        rc = exfat_directory_get(di, &de);
     334        if (rc != EOK)
     335                return rc;
     336        count = de->file.count+1;
     337       
     338        while (count) {
     339                rc = exfat_directory_get(di, &de);
     340                if (rc != EOK)
     341                        return rc;
     342                de->type &= (~EXFAT_TYPE_USED);
     343                di->b->dirty = true;
     344
     345                rc = exfat_directory_next(di);
     346                if (rc!=EOK)
     347                        return rc;
     348                count--;
     349        }
    331350        return EOK;
    332351}
Note: See TracChangeset for help on using the changeset viewer.