summaryrefslogtreecommitdiff
path: root/sys/src/cmd/hjfs/fns.h
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2020-07-12 18:54:22 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2020-07-12 18:54:22 +0200
commit2c8c2bc7272815f4535d4922a73ec5b484f42c3a (patch)
treed50545cead9c652e7e6ea7b9e15d5fda7d493d26 /sys/src/cmd/hjfs/fns.h
parenta469cffafe23135da443b078bf82ad45833ff37a (diff)
hjfs: update mtime and qid.vers for directory on rename
when wstating a file, its directory should be updated to reflect this change. here is what the manpage states: > The mtime field reflects the time of the last change of content > (except when later changed by wstat). For a directory it is the > time of the most recent remove, create, or wstat of a file in the > directory.
Diffstat (limited to 'sys/src/cmd/hjfs/fns.h')
-rw-r--r--sys/src/cmd/hjfs/fns.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/hjfs/fns.h b/sys/src/cmd/hjfs/fns.h
index 0a2cb8667..a41fd1271 100644
--- a/sys/src/cmd/hjfs/fns.h
+++ b/sys/src/cmd/hjfs/fns.h
@@ -41,7 +41,7 @@ int haveloc(Fs *, uvlong, int, Loc *);
Loc * cloneloc(Fs *, Loc *);
void putloc(Fs *, Loc *, int);
int findentry(Fs *, FLoc *, Buf *, char *, FLoc *, int);
-void modified(Chan *, Dentry *);
+void modified(Loc *, Dentry *, short);
int trunc(Fs *, FLoc *, Buf *, uvlong);
int dprint(char *fmt, ...);
int delete(Fs *, FLoc *, Buf *);