1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
Index: rust-cntr-1.6.0/src/fs.rs
===================================================================
--- rust-cntr-1.6.0.orig/src/fs.rs
+++ rust-cntr-1.6.0/src/fs.rs
@@ -379,7 +379,7 @@ impl CntrFs {
match reply {
ReplyDirectory::Directory(ref mut r) => r.add(
entry.d_ino,
- dirp.offset,
+ dirp.offset.into(),
dtype_kind(entry.d_type),
OsStr::from_bytes(name.to_bytes()),
),
@@ -387,7 +387,7 @@ impl CntrFs {
match self.lookup_inode(ino, OsStr::from_bytes(name.to_bytes())) {
Ok((attr, generation)) => r.add(
entry.d_ino,
- dirp.offset,
+ dirp.offset.into(),
OsStr::from_bytes(name.to_bytes()),
&TTL,
&attr,
@@ -415,7 +415,7 @@ impl CntrFs {
fn attr_from_stat(&self, attr: stat::FileStat) -> FileAttr {
let ctime = UNIX_EPOCH + Duration::new(attr.st_ctime as u64, attr.st_ctime_nsec as u32);
FileAttr {
- ino: attr.st_ino, // replaced by ino pointer
+ ino: attr.st_ino.into(), // replaced by ino pointer
size: attr.st_size as u64,
blocks: attr.st_blocks as u64,
atime: UNIX_EPOCH + Duration::new(attr.st_atime as u64, attr.st_atime_nsec as u32),
|