Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/path/inode_path_bridge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ where
req: Request,
parent: u64,
fh: u64,
offset: i64,
offset: u64,
) -> Result<ReplyDirectory<impl Stream<Item = Result<DirectoryEntry>> + Send + '_>> {
let mut inode_name_manager = self.inode_name_manager.write().await;
let parent_path = inode_name_manager
Expand Down
2 changes: 1 addition & 1 deletion src/path/path_filesystem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ pub trait PathFilesystem {
req: Request,
path: &'a OsStr,
fh: u64,
offset: i64,
offset: u64,
) -> Result<ReplyDirectory<impl Stream<Item = Result<DirectoryEntry>> + Send + 'a>> {
Err::<ReplyDirectory<Empty<_>>, _>(libc::ENOSYS.into())
}
Expand Down
4 changes: 2 additions & 2 deletions src/path/reply.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ pub struct DirectoryEntry {
/// entry name.
pub name: OsString,
/// Directory offset of the _next_ entry
pub offset: i64,
pub offset: u64,
}

/// readdir reply.
Expand All @@ -143,7 +143,7 @@ pub struct DirectoryEntryPlus {
/// the entry name.
pub name: OsString,
/// Directory offset of the _next_ entry
pub offset: i64,
pub offset: u64,
/// the entry attribute.
pub attr: FileAttr,
/// the entry TTL.
Expand Down
2 changes: 1 addition & 1 deletion src/raw/filesystem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ pub trait Filesystem {
req: Request,
parent: Inode,
fh: u64,
offset: i64,
offset: u64,
) -> Result<ReplyDirectory<impl Stream<Item = Result<DirectoryEntry>> + Send + 'a>> {
Err::<ReplyDirectory<Empty<_>>, _>(libc::ENOSYS.into())
}
Expand Down
4 changes: 2 additions & 2 deletions src/raw/reply.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ pub struct DirectoryEntry {
/// entry name.
pub name: OsString,
/// Directory offset of the _next_ entry
pub offset: i64,
pub offset: u64,
}

/// readdir reply.
Expand Down Expand Up @@ -384,7 +384,7 @@ pub struct DirectoryEntryPlus {
/// the entry name.
pub name: OsString,
/// Directory offset of the _next_ entry
pub offset: i64,
pub offset: u64,
/// the entry attribute.
pub attr: FileAttr,
/// the entry TTL.
Expand Down
4 changes: 2 additions & 2 deletions src/raw/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3036,7 +3036,7 @@ impl<FS: Filesystem + Send + Sync + 'static> Session<FS> {
);

let reply_readdir = match fs
.readdir(request, in_header.nodeid, read_in.fh, read_in.offset as i64)
.readdir(request, in_header.nodeid, read_in.fh, read_in.offset)
.await
{
Err(err) => {
Expand Down Expand Up @@ -3078,7 +3078,7 @@ impl<FS: Filesystem + Send + Sync + 'static> Session<FS> {

let dir_entry = fuse_dirent {
ino: entry.inode,
off: entry.offset as u64,
off: entry.offset,
namelen: name.len() as u32,
// learn from fuse-rs and golang bazil.org fuse DirentType
r#type: mode_from_kind_and_perm(entry.kind, 0) >> 12,
Expand Down