Comments (4)
Thanks; I will take a look. Sounds like we might have gotten the spec wrong.
from fscq.
Indeed, we proved the wrong spec about truncate -- the FS.file_set_sz_recover_ok
theorem. The implementation just sets the length field but doesn't do anything useful with the data blocks (and the theorem just talks about the file metadata). This is because we wrote this operation before implementing byte-level file contents, and forgot to go back and fix it. The truncate operation should instead call something like ByteFile.grow_file
, but passed through the tree abstraction in DirTree.v
. I'll try to fix this soon.
from fscq.
This should be fixed in c679921.
Incidentally, your test case didn't compile on a strict C compiler because it was missing a second argument to creat(). :-)
from fscq.
This issue is closed, but I just need to add that this problem was detected by David Sheets (dsheets) using SibylFS (David is one of the authors on the SibylFS paper). This is part of the "evidence trail" for the UK "research excellence framework".
from fscq.
Related Issues (15)
- Multiuser/permissions support HOT 1
- sync() fails to persist a new directory entry HOT 2
- Potential crash consistency bug - fsync fails to persist directory entry HOT 9
- Potential logic bug: renaming an emptied directory fails HOT 4
- fdatasync not working as expected on fscq? HOT 4
- ftruncate to grow a file does not allocate blocks HOT 1
- Advice on refreshing the ocaml extraction target? HOT 4
- Removing a non-empty directory results in EIO HOT 3
- Subdirectories do not increment parent directory's link count
- chmod has no effect and does not return an error HOT 2
- Renaming a directory to a non-empty directory results in EIO HOT 1
- Symlink support
- Hard link support HOT 1
- Time support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fscq.