Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/volsrv/part.c

    r395df52 rd2c8533  
    5353static FIBRIL_MUTEX_INITIALIZE(vol_parts_lock);
    5454
    55 struct fsname_type {
    56         const char *name;
    57         vol_fstype_t fstype;
    58 };
    59 
    60 static struct fsname_type fstab[] = {
    61         { "ext4fs", fs_ext4 },
    62         { "cdfs", fs_cdfs },
    63         { "exfat", fs_exfat },
    64         { "fat", fs_fat },
    65         { "mfs", fs_minix },
    66         { NULL, 0 }
    67 };
    68 
    6955/** Check for new partitions */
    7056static int vol_part_check_new(void)
     
    148134        bool empty;
    149135        vfs_fs_probe_info_t info;
    150         struct fsname_type *fst;
    151136        int rc;
    152137
     
    172157
    173158        log_msg(LOG_DEFAULT, LVL_NOTE, "Probe partition %s", part->svc_name);
    174 
    175         fst = &fstab[0];
    176         while (fst->name != NULL) {
    177                 rc = vfs_fsprobe(fst->name, sid, &info);
    178                 if (rc == EOK)
    179                         break;
    180                 ++fst;
    181         }
    182 
    183         if (fst->name != NULL) {
    184                 log_msg(LOG_DEFAULT, LVL_NOTE, "Found %s", fst->name);
     159        rc = vfs_fsprobe("mfs", sid, &info);
     160        if (rc == EOK) {
    185161                part->pcnt = vpc_fs;
    186                 part->fstype = fst->fstype;
     162                part->fstype = fs_minix;
    187163        } else {
    188164                log_msg(LOG_DEFAULT, LVL_NOTE, "Partition does not contain "
Note: See TracChangeset for help on using the changeset viewer.