Changeset 395df52 in mainline for uspace/srv/volsrv/part.c
- Timestamp:
- 2017-05-12T19:58:27Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e48947e
- Parents:
- de5b708
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/volsrv/part.c
rde5b708 r395df52 53 53 static FIBRIL_MUTEX_INITIALIZE(vol_parts_lock); 54 54 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 55 69 /** Check for new partitions */ 56 70 static int vol_part_check_new(void) … … 134 148 bool empty; 135 149 vfs_fs_probe_info_t info; 150 struct fsname_type *fst; 136 151 int rc; 137 152 … … 157 172 158 173 log_msg(LOG_DEFAULT, LVL_NOTE, "Probe partition %s", part->svc_name); 159 rc = vfs_fsprobe("mfs", sid, &info); 160 if (rc == EOK) { 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); 161 185 part->pcnt = vpc_fs; 162 part->fstype = fs _minix;186 part->fstype = fst->fstype; 163 187 } else { 164 188 log_msg(LOG_DEFAULT, LVL_NOTE, "Partition does not contain "
Note:
See TracChangeset
for help on using the changeset viewer.