catar/encoder.rs: disable backup of virtual file systems
This commit is contained in:
parent
d7bfac8605
commit
a8a0495612
|
@ -66,6 +66,10 @@ impl <'a, W: Write> CaTarEncoder<'a, W> {
|
||||||
|
|
||||||
let magic = detect_fs_type(dir_fd)?;
|
let magic = detect_fs_type(dir_fd)?;
|
||||||
|
|
||||||
|
if is_virtual_file_system(magic) {
|
||||||
|
bail!("backup virtual file systems is disabled!");
|
||||||
|
}
|
||||||
|
|
||||||
me.encode_dir(dir, &stat, magic)?;
|
me.encode_dir(dir, &stat, magic)?;
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
Loading…
Reference in New Issue