mirror of
https://github.com/schoebel/mars
synced 2025-02-17 20:47:16 +00:00
infra: make ordered_readlink stamp-preserving
This commit is contained in:
parent
4d2d63eda0
commit
5e39f44a62
@ -833,9 +833,7 @@ char *mars_readlink(const char *newpath, struct lamport_time *stamp)
|
||||
if (unlikely(status < 0)) {
|
||||
MARS_ERR("cannot read link '%s', status = %d\n", newpath, status);
|
||||
} else if (stamp) {
|
||||
set_get_lamport(&inode->i_mtime, NULL, stamp);
|
||||
} else {
|
||||
set_lamport(&inode->i_mtime);
|
||||
*stamp = inode->i_mtime;
|
||||
}
|
||||
|
||||
done_put:
|
||||
|
Loading…
Reference in New Issue
Block a user