Changes in uspace/srv/fs/exfat/exfat_ops.c [395df52:d2c8533] in mainline
- File:
-
- 1 edited
-
uspace/srv/fs/exfat/exfat_ops.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/exfat/exfat_ops.c
r395df52 rd2c8533 1053 1053 static int exfat_fsprobe(service_id_t service_id, vfs_fs_probe_info_t *info) 1054 1054 { 1055 int rc; 1056 exfat_bs_t *bs; 1057 1058 /* initialize libblock */ 1059 rc = block_init(service_id, BS_SIZE); 1060 if (rc != EOK) 1061 return rc; 1062 1063 /* prepare the boot block */ 1064 rc = block_bb_read(service_id, BS_BLOCK); 1065 if (rc != EOK) { 1066 block_fini(service_id); 1067 return rc; 1068 } 1069 1070 /* get the buffer with the boot sector */ 1071 bs = block_bb_get(service_id); 1072 1073 /* Do some simple sanity checks on the file system. */ 1074 rc = exfat_sanity_check(bs); 1075 1076 (void) block_cache_fini(service_id); 1077 block_fini(service_id); 1078 return rc; 1055 return ENOTSUP; 1079 1056 } 1080 1057 … … 1109 1086 bs = block_bb_get(service_id); 1110 1087 1111 /* Do some simple sanity checks on the file system. */1112 rc = exfat_sanity_check(bs);1113 if (rc != EOK) {1114 (void) block_cache_fini(service_id);1115 block_fini(service_id);1116 return rc;1117 }1118 1119 1088 /* Initialize the block cache */ 1120 1089 rc = block_cache_init(service_id, BPS(bs), 0 /* XXX */, cmode); 1121 1090 if (rc != EOK) { 1091 block_fini(service_id); 1092 return rc; 1093 } 1094 1095 /* Do some simple sanity checks on the file system. */ 1096 rc = exfat_sanity_check(bs, service_id); 1097 if (rc != EOK) { 1098 (void) block_cache_fini(service_id); 1122 1099 block_fini(service_id); 1123 1100 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.
