Changes in uspace/srv/volsrv/part.c [395df52:d2c8533] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/volsrv/part.c
r395df52 rd2c8533 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 69 55 /** Check for new partitions */ 70 56 static int vol_part_check_new(void) … … 148 134 bool empty; 149 135 vfs_fs_probe_info_t info; 150 struct fsname_type *fst;151 136 int rc; 152 137 … … 172 157 173 158 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) { 185 161 part->pcnt = vpc_fs; 186 part->fstype = fs t->fstype;162 part->fstype = fs_minix; 187 163 } else { 188 164 log_msg(LOG_DEFAULT, LVL_NOTE, "Partition does not contain "
Note:
See TracChangeset
for help on using the changeset viewer.