@@ -145,7 +145,7 @@ platform_check_iswritable(char *name, char *block, struct stat *s)
}
int
-platform_set_blocksize(int fd, char *path, dev_t device, int blocksize, int fatal)
+set_blocksize(int fd, char *path, dev_t device, int blocksize, int fatal)
{
int error = 0;
@@ -160,6 +160,12 @@ platform_set_blocksize(int fd, char *path, dev_t device, int blocksize, int fata
return error;
}
+int
+platform_set_blocksize(int fd, char *path, dev_t device, int blocksize, int fatal)
+{
+ return set_blocksize(fd, path, device, blocksize, fatal);
+}
+
/*
* Flush dirty pagecache and disk write cache to stable media. Returns 0 for
* success or -1 (with errno set) for failure.
@@ -14,6 +14,7 @@ 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 set_blocksize(int fd, char *path, dev_t device, int bsz, int fatal);
int platform_flush_device(int fd, dev_t device);
int flush_device(int fd, dev_t device);
char *platform_findrawpath(char *path);
@@ -123,10 +123,10 @@ retry:
if (!readonly && setblksize && (statb.st_mode & S_IFMT) == S_IFBLK) {
if (setblksize == 1)
/* use the default blocksize */
- (void)platform_set_blocksize(fd, path, statb.st_rdev, XFS_MIN_SECTORSIZE, 0);
+ (void)set_blocksize(fd, path, statb.st_rdev, XFS_MIN_SECTORSIZE, 0);
else {
/* given an explicit blocksize to use */
- if (platform_set_blocksize(fd, path, statb.st_rdev, setblksize, 1))
+ if (set_blocksize(fd, path, statb.st_rdev, setblksize, 1))
exit(1);
}
}