Keep check_file_generic() in shared code base, and allow special case
code in check_file() in os section. In future, macOS will have
additional checks in check_file().
Linux and FreeBSD wrappers just calls check_file_generic().
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Jorgen Lundman <lundman@lundman.net>
Closes #12385
"details.\n"), zpool_get_name(zhp));
}
}
+
+int
+check_file(const char *file, boolean_t force, boolean_t isspare)
+{
+ return (check_file_generic(file, force, isspare));
+}
after_zpool_upgrade(zpool_handle_t *zhp)
{
}
+
+int
+check_file(const char *file, boolean_t force, boolean_t isspare)
+{
+ return (check_file_generic(file, force, isspare));
+}
void vdev_error(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
int check_file(const char *file, boolean_t force, boolean_t isspare);
void after_zpool_upgrade(zpool_handle_t *zhp);
+int check_file_generic(const char *file, boolean_t force, boolean_t isspare);
#ifdef __cplusplus
}
* not in use by another pool, and not in use by swap.
*/
int
-check_file(const char *file, boolean_t force, boolean_t isspare)
+check_file_generic(const char *file, boolean_t force, boolean_t isspare)
{
char *name;
int fd;