Remove useless login
This commit is contained in:
parent
5208451311
commit
e86139986d
|
@ -143,7 +143,6 @@ impl InodeCacheExt for InodeCache {
|
||||||
|
|
||||||
impl Filesystem for EncryptedFs {
|
impl Filesystem for EncryptedFs {
|
||||||
fn access(&mut self, _req: &fuser::Request<'_>, ino: u64, mask: i32, reply: fuser::ReplyEmpty) {
|
fn access(&mut self, _req: &fuser::Request<'_>, ino: u64, mask: i32, reply: fuser::ReplyEmpty) {
|
||||||
log::debug!("access, ino : {}, mask : {}", ino, mask);
|
|
||||||
if let Some(path) = self.get_path(ino) {
|
if let Some(path) = self.get_path(ino) {
|
||||||
reply.ok()
|
reply.ok()
|
||||||
} else {
|
} else {
|
||||||
|
@ -152,9 +151,7 @@ impl Filesystem for EncryptedFs {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn getattr(&mut self, _req: &fuser::Request<'_>, ino: u64, reply: fuser::ReplyAttr) {
|
fn getattr(&mut self, _req: &fuser::Request<'_>, ino: u64, reply: fuser::ReplyAttr) {
|
||||||
log::debug!("getattr, ino : {}", ino);
|
|
||||||
if let Some(path) = self.get_path(ino) {
|
if let Some(path) = self.get_path(ino) {
|
||||||
log::debug!("access, path = {:?}", path);
|
|
||||||
reply.attr(&Duration::new(0, 0), &Self::get_attr(path, ino))
|
reply.attr(&Duration::new(0, 0), &Self::get_attr(path, ino))
|
||||||
} else {
|
} else {
|
||||||
reply.error(libc::ENOENT)
|
reply.error(libc::ENOENT)
|
||||||
|
@ -273,8 +270,6 @@ impl Filesystem for EncryptedFs {
|
||||||
reply: fuser::ReplyData,
|
reply: fuser::ReplyData,
|
||||||
) {
|
) {
|
||||||
if let Some(file_path) = &self.get_path(ino) {
|
if let Some(file_path) = &self.get_path(ino) {
|
||||||
log::debug!("read {:?}", file_path);
|
|
||||||
|
|
||||||
let mut file = File::open(file_path).unwrap();
|
let mut file = File::open(file_path).unwrap();
|
||||||
let decoder = self.fs.content_decoder();
|
let decoder = self.fs.content_decoder();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue