avoid compiler warnings
This commit is contained in:
@ -32,7 +32,7 @@ pub struct CaTarEncoder<'a, W: Write> {
|
||||
current_path: PathBuf, // used for error reporting
|
||||
writer: &'a mut W,
|
||||
writer_pos: usize,
|
||||
size: usize,
|
||||
_size: usize,
|
||||
file_copy_buffer: Vec<u8>,
|
||||
devices: Option<HashSet<u64>>,
|
||||
}
|
||||
@ -55,7 +55,7 @@ impl <'a, W: Write> CaTarEncoder<'a, W> {
|
||||
current_path: path,
|
||||
writer: writer,
|
||||
writer_pos: 0,
|
||||
size: 0,
|
||||
_size: 0,
|
||||
file_copy_buffer,
|
||||
devices: None,
|
||||
};
|
||||
@ -553,36 +553,36 @@ nix::ioctl_read!(read_fat_attr_fd, b'r', 0x10, u32);
|
||||
|
||||
// from /usr/include/linux/magic.h
|
||||
// and from casync util.h
|
||||
const BINFMTFS_MAGIC: i64 = 0x42494e4d;
|
||||
const CGROUP2_SUPER_MAGIC: i64 = 0x63677270;
|
||||
const CGROUP_SUPER_MAGIC: i64 = 0x0027e0eb;
|
||||
const CONFIGFS_MAGIC: i64 = 0x62656570;
|
||||
const DEBUGFS_MAGIC: i64 = 0x64626720;
|
||||
const DEVPTS_SUPER_MAGIC: i64 = 0x00001cd1;
|
||||
const EFIVARFS_MAGIC: i64 = 0xde5e81e4;
|
||||
const FUSE_CTL_SUPER_MAGIC: i64 = 0x65735543;
|
||||
const HUGETLBFS_MAGIC: i64 = 0x958458f6;
|
||||
const MQUEUE_MAGIC: i64 = 0x19800202;
|
||||
const NFSD_MAGIC: i64 = 0x6e667364;
|
||||
const PROC_SUPER_MAGIC: i64 = 0x00009fa0;
|
||||
const PSTOREFS_MAGIC: i64 = 0x6165676C;
|
||||
const RPCAUTH_GSSMAGIC: i64 = 0x67596969;
|
||||
const SECURITYFS_MAGIC: i64 = 0x73636673;
|
||||
const SELINUX_MAGIC: i64 = 0xf97cff8c;
|
||||
const SMACK_MAGIC: i64 = 0x43415d53;
|
||||
const RAMFS_MAGIC: i64 = 0x858458f6;
|
||||
const TMPFS_MAGIC: i64 = 0x01021994;
|
||||
const SYSFS_MAGIC: i64 = 0x62656572;
|
||||
const MSDOS_SUPER_MAGIC: i64 = 0x00004d44;
|
||||
const FUSE_SUPER_MAGIC: i64 = 0x65735546;
|
||||
pub const BINFMTFS_MAGIC: i64 = 0x42494e4d;
|
||||
pub const CGROUP2_SUPER_MAGIC: i64 = 0x63677270;
|
||||
pub const CGROUP_SUPER_MAGIC: i64 = 0x0027e0eb;
|
||||
pub const CONFIGFS_MAGIC: i64 = 0x62656570;
|
||||
pub const DEBUGFS_MAGIC: i64 = 0x64626720;
|
||||
pub const DEVPTS_SUPER_MAGIC: i64 = 0x00001cd1;
|
||||
pub const EFIVARFS_MAGIC: i64 = 0xde5e81e4;
|
||||
pub const FUSE_CTL_SUPER_MAGIC: i64 = 0x65735543;
|
||||
pub const HUGETLBFS_MAGIC: i64 = 0x958458f6;
|
||||
pub const MQUEUE_MAGIC: i64 = 0x19800202;
|
||||
pub const NFSD_MAGIC: i64 = 0x6e667364;
|
||||
pub const PROC_SUPER_MAGIC: i64 = 0x00009fa0;
|
||||
pub const PSTOREFS_MAGIC: i64 = 0x6165676C;
|
||||
pub const RPCAUTH_GSSMAGIC: i64 = 0x67596969;
|
||||
pub const SECURITYFS_MAGIC: i64 = 0x73636673;
|
||||
pub const SELINUX_MAGIC: i64 = 0xf97cff8c;
|
||||
pub const SMACK_MAGIC: i64 = 0x43415d53;
|
||||
pub const RAMFS_MAGIC: i64 = 0x858458f6;
|
||||
pub const TMPFS_MAGIC: i64 = 0x01021994;
|
||||
pub const SYSFS_MAGIC: i64 = 0x62656572;
|
||||
pub const MSDOS_SUPER_MAGIC: i64 = 0x00004d44;
|
||||
pub const FUSE_SUPER_MAGIC: i64 = 0x65735546;
|
||||
|
||||
|
||||
#[inline(always)]
|
||||
fn is_temporary_file_system(magic: i64) -> bool {
|
||||
pub fn is_temporary_file_system(magic: i64) -> bool {
|
||||
magic == RAMFS_MAGIC || magic == TMPFS_MAGIC
|
||||
}
|
||||
|
||||
fn is_virtual_file_system(magic: i64) -> bool {
|
||||
pub fn is_virtual_file_system(magic: i64) -> bool {
|
||||
|
||||
match magic {
|
||||
BINFMTFS_MAGIC |
|
||||
|
Reference in New Issue
Block a user