@@ -129,7 +129,7 @@ platform_check_ismounted(char *name, char *block, struct stat *s, int verbose)
}
int
-platform_check_iswritable(char *name, char *block, struct stat *s)
+check_iswritable(char *name, char *block, struct stat *s)
{
int flags;
@@ -138,6 +138,12 @@ platform_check_iswritable(char *name, char *block, struct stat *s)
return check_mount(name, block, s, flags);
}
+int
+platform_check_iswritable(char *name, char *block, struct stat *s)
+{
+ return check_iswritable(name, block, s);
+}
+
int
platform_set_blocksize(int fd, char *path, dev_t device, int blocksize, int fatal)
{
@@ -11,6 +11,7 @@ int platform_check_ismounted(char *path, char *block, struct stat *sptr,
int verbose);
int check_ismounted(char *path, char *block, struct stat *sptr, int verbose);
int platform_check_iswritable(char *path, char *block, struct stat *sptr);
+int check_iswritable(char *path, char *block, struct stat *sptr);
int platform_set_blocksize(int fd, char *path, dev_t device, int bsz,
int fatal);
int platform_flush_device(int fd, dev_t device);
@@ -61,7 +61,7 @@ check_isactive(char *name, char *block, int fatal)
return 0;
if (check_ismounted(name, block, &st, 0) == 0)
return 0;
- if (platform_check_iswritable(name, block, &st))
+ if (check_iswritable(name, block, &st))
return fatal ? 1 : 0;
return 0;
}