- Check input param path is mounted
Change-Id: Ief2f3d1703273d93dcd873c17defda7b6bd6c80e
Signed-off-by: pr.jung <pr.jung@samsung.com>
#define COMPAT_DIR "/opt/usr/media"
int is_compat_bind_mount(void);
int storage_ext_is_supported(void);
+int mount_check(char *path);
#define USER_UID_START 5000
int storage_format_mmc(struct mmc_contents *mmc_data, int option);
/**
+ * @brief This API is used to format mmc.\n
+ *
+ * @param[in] path for checking mounted
+ * @param[out] mounted True when path is mounted
+ *
+ * @return @c 0 on success,
+ * otherwise a negative error value
+ *
+ * @retval #STORAGE_ERROR_NONE Successful
+ */
+int storage_is_mounted(char *path, bool *mounted);
+
+/**
* @}
*/
return 0;
}
-static int mount_check(char *path)
+int mount_check(char *path)
{
int ret = false;
struct mntent *mnt;
return STORAGE_ERROR_NONE;
}
+
+int storage_is_mounted(char *path, bool *mounted)
+{
+ int ret;
+
+ ret = mount_check(path);
+
+ *mounted = ret;
+ return STORAGE_ERROR_NONE;
+}