HomeFreeBSD

libzutil: import: filter out unsuitable files earlier

Description

libzutil: import: filter out unsuitable files earlier

Only accept the right type of file, if available, and reject too-small
files before opening them on Linux

Reviewed-by: John Kennedy <john.kennedy@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #12105

Details

Provenance
наб <nabijaczleweli@nabijaczleweli.xyz>Authored on May 22 2021, 2:29 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jun 11 2021, 4:10 PM
Parents
rGbf80fb53f59c: linux/libzutil: zpool_open_func: don't dup name, extract untouchables
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG64dfdaba372f: libzutil: import: filter out unsuitable files earlier (authored by наб <nabijaczleweli@nabijaczleweli.xyz>).Jun 11 2021, 4:10 PM