mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 02:44:41 +03:00
Move check_file to os/$platform section
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
This commit is contained in:
@@ -112,7 +112,7 @@ vdev_error(const char *fmt, ...)
|
||||
* 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;
|
||||
|
||||
Reference in New Issue
Block a user