Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
redoxfs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
redox-os
redoxfs
Commits
5a1aaadd
Unverified
Commit
5a1aaadd
authored
7 years ago
by
Ian Douglas Scott
Browse files
Options
Downloads
Patches
Plain Diff
fuse: allow setting mtime to earlier time
parent
8737f194
No related branches found
No related tags found
1 merge request
!28
fuse: allow setting mtime to earlier time
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mount/fuse.rs
+1
-1
1 addition, 1 deletion
mount/fuse.rs
with
1 addition
and
1 deletion
mount/fuse.rs
+
1
−
1
View file @
5a1aaadd
...
@@ -136,7 +136,7 @@ impl Filesystem for Fuse {
...
@@ -136,7 +136,7 @@ impl Filesystem for Fuse {
if
let
Some
(
mtime
)
=
mtime
{
if
let
Some
(
mtime
)
=
mtime
{
match
self
.fs
.node
(
block
)
{
match
self
.fs
.node
(
block
)
{
Ok
(
mut
node
)
=>
if
mtime
.sec
as
u64
>
node
.1
.mtime
||
(
mtime
.sec
as
u64
==
node
.1
.mtime
&&
mtime
.nsec
as
u32
>
node
.1
.mtime_nsec
)
{
Ok
(
mut
node
)
=>
{
node
.1
.mtime
=
mtime
.sec
as
u64
;
node
.1
.mtime
=
mtime
.sec
as
u64
;
node
.1
.mtime_nsec
=
mtime
.nsec
as
u32
;
node
.1
.mtime_nsec
=
mtime
.nsec
as
u32
;
if
let
Err
(
err
)
=
self
.fs
.write_at
(
node
.0
,
&
node
.1
)
{
if
let
Err
(
err
)
=
self
.fs
.write_at
(
node
.0
,
&
node
.1
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment