Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/fat/fat_ops.c

    r395df52 rd2c8533  
    915915static int fat_fsprobe(service_id_t service_id, vfs_fs_probe_info_t *info)
    916916{
    917         fat_bs_t *bs;
    918         int rc;
    919 
    920         /* initialize libblock */
    921         rc = block_init(service_id, BS_SIZE);
    922         if (rc != EOK)
    923                 return rc;
    924 
    925         /* prepare the boot block */
    926         rc = block_bb_read(service_id, BS_BLOCK);
    927         if (rc != EOK) {
    928                 block_fini(service_id);
    929                 return rc;
    930         }
    931 
    932         /* get the buffer with the boot sector */
    933         bs = block_bb_get(service_id);
    934 
    935         if (BPS(bs) != BS_SIZE) {
    936                 block_fini(service_id);
    937                 return ENOTSUP;
    938         }
    939 
    940         /* Initialize the block cache */
    941         rc = block_cache_init(service_id, BPS(bs), 0 /* XXX */, CACHE_MODE_WB);
    942         if (rc != EOK) {
    943                 block_fini(service_id);
    944                 return rc;
    945         }
    946 
    947         /* Do some simple sanity checks on the file system. */
    948         rc = fat_sanity_check(bs, service_id);
    949 
    950         (void) block_cache_fini(service_id);
    951         block_fini(service_id);
    952 
    953         return rc;
     917        return ENOTSUP;
    954918}
    955919
Note: See TracChangeset for help on using the changeset viewer.