ref: 8dfdc38f952b708732e605641bd9cc64b126cbdc
parent: 5af9daea17daa01ad339e8f38909b5e44b047495
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Tue Apr 2 17:19:25 EDT 2024
ext4srv: walk: set QTTMP
--- a/sys/src/cmd/ext4srv/ext4srv.c
+++ b/sys/src/cmd/ext4srv/ext4srv.c
@@ -679,7 +679,7 @@
struct ext4_mountpoint *mp;
static char errbuf[ERRMAX];
struct ext4_inode inode;
- u32int ino, t;
+ u32int ino, t, iflags;
Aux *a, dir;
int isroot;
char *s;
@@ -730,8 +730,11 @@
a->type = Adir;
}else
a->type = Afile;
- if(ext4_inode_get_flags(&inode) & EXT4_INODE_FLAG_APPEND)
+ iflags = ext4_inode_get_flags(&inode);
+ if(iflags & EXT4_INODE_FLAG_APPEND)
qid->type |= QTAPPEND;
+ if(iflags & EXT4_INODE_FLAG_NODUMP)
+ qid->type |= QTTMP;
free(a->path);
a->path = s;
fid->qid = *qid;