}
/* external storage */
+ if (!storage_ext_is_supported()) {
+ _D("Block module is not enabled");
+ return STORAGE_ERROR_NOT_SUPPORTED;
+ }
+
ret = storage_ext_get_root(storage_id, root, sizeof(root), &extendedint);
if (ret < 0) {
_E("Failed to get root path of external storage(%d, %d", storage_id, ret); //LCOV_EXCL_LINE
}
/* external storage */
+ if (!storage_ext_is_supported()) {
+ _D("Block module is not enabled");
+ return STORAGE_ERROR_NOT_SUPPORTED;
+ }
+
if (type == STORAGE_DIRECTORY_SYSTEM_RINGTONES) {
_E("Not support directory : id(%d) type(%d)", storage_id, type); //LCOV_EXCL_LINE
return STORAGE_ERROR_INVALID_PARAMETER;
}
/* external storage */
+ if (!storage_ext_is_supported()) {
+ _D("Block module is not enabled");
+ return STORAGE_ERROR_NOT_SUPPORTED;
+ }
+
ret = storage_ext_get_root(storage_id, root, sizeof(root), &extendedint);
if (ret < 0) {
_E("Failed to get type of external storage");
}
/* external storage */
+ if (!storage_ext_is_supported()) {
+ _D("Block module is not enabled");
+ return STORAGE_ERROR_NOT_SUPPORTED;
+ }
+
ret = storage_ext_get_state(storage_id, &st);
if (ret < 0) {
_E("Failed to get state (storage id(%d), ret(%d))", storage_id, ret); //LCOV_EXCL_LINE
/* For backward compatability */
if (storage_id == STORAGE_TYPE_EXTERNAL) {
+ if (!storage_ext_is_supported()) {
+ _D("Block module is not enabled");
+ return STORAGE_ERROR_NOT_SUPPORTED;
+ }
+
if (!compat_cb_init) {
ret = storage_set_changed_cb(STORAGE_TYPE_EXTERNAL, compat_cb, NULL);
if (ret == STORAGE_ERROR_NONE)
return STORAGE_ERROR_NONE;
/* external storage */
+ if (!storage_ext_is_supported()) {
+ _D("Block module is not enabled");
+ return STORAGE_ERROR_NOT_SUPPORTED;
+ }
+
info.id = storage_id;
info.state_cb = callback;
info.user_data = user_data;
/* For backward compatability */
if (storage_id == STORAGE_TYPE_EXTERNAL) {
+ if (!storage_ext_is_supported()) {
+ _D("Block module is not enabled");
+ return STORAGE_ERROR_NOT_SUPPORTED;
+ }
+
dd_list *elem_n;
struct compat_cb_info* ccb_info;
return STORAGE_ERROR_NONE;
/* external storage */
+ if (!storage_ext_is_supported()) {
+ _D("Block module is not enabled");
+ return STORAGE_ERROR_NOT_SUPPORTED;
+ }
+
info.id = storage_id;
info.state_cb = callback;
}
/* external storage */
+ if (!storage_ext_is_supported()) {
+ _D("Block module is not enabled");
+ return STORAGE_ERROR_NOT_SUPPORTED;
+ }
+
ret = storage_ext_get_space(storage_id, &total, NULL);
out:
}
/* external storage */
+ if (!storage_ext_is_supported()) {
+ _D("Block module is not enabled");
+ return STORAGE_ERROR_NOT_SUPPORTED;
+ }
+
ret = storage_ext_get_space(storage_id, NULL, &avail);
out:
if (*type == STORAGE_TYPE_INTERNAL || *type == STORAGE_TYPE_EXTENDED_INTERNAL)
return STORAGE_ERROR_INVALID_PARAMETER;
+ if (!storage_ext_is_supported()) {
+ _D("Block module is not enabled");
+ return STORAGE_ERROR_NOT_SUPPORTED;
+ }
+
ext_dev = calloc(1, sizeof(storage_ext_device));
if (!ext_dev) {
//LCOV_EXCL_START System Error