Skip to content

Commit b7519c0

Browse files
committed
readdir: disable d_type workaround
Revert commit e5ded9c which enable a workaround for d_type detection for overlayfs, which is not needed and introduce a bug for removing directories.
1 parent afb7d20 commit b7519c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/zdbfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ static void zdbfs_fuse_readdir(fuse_req_t req, fuse_ino_t ino, size_t size, off_
354354

355355
// set ino id and entry
356356
stbuf.st_ino = entry->ino;
357-
stbuf.st_mode = S_IFREG; // FIXME: workaround for d_type
357+
// stbuf.st_mode = S_IFREG; // FIXME: workaround for d_type
358358
fuse_add_direntry(req, (char *) ptr, buffer.length - bufused, entry->name, &stbuf, newoff);
359359

360360
ptr += entlen;

0 commit comments

Comments
 (0)