SOSP15-paper102-submitted.pdf (274.52 kB)
Download file

SibylFS: Formal specification and oracle-based testing for POSIX and real-world file systems

Download (274.52 kB)
conference contribution
posted on 15.03.2017, 15:45 by Tom Ridge, David Sheets, Thomas Tuerk, Andrea Giugliano, Anil Madhavapeddy, Peter Sewell
Systems depend critically on the behaviour of file systems, but that behaviour differs in many details, both between implementations and between each implementation and the POSIX (and other) prose specifications. Building robust and portable software requires understanding these details and differences, but there is currently no good way to systematically describe, investigate, or test file system behaviour across this complex multi-platform interface. In this paper we show how to characterise the envelope of allowed behaviour of file systems in a form that enables practical and highly discriminating testing. We give a mathematically rigorous model of file system behaviour, SibylFS, that specifies the range of allowed behaviours of a file system for any sequence of the system calls within our scope, and that can be used as a test oracle to decide whether an observed trace is allowed by the model, both for validating the model and for testing file systems against it. SibylFS is modular enough to not only describe POSIX, but also specific Linux, OS X and FreeBSD behaviours. We complement the model with an extensive test suite of over 21 000 tests; this can be run on a target file system and checked in less than 5 minutes, making it usable in practice. Finally, we report experimental results for around 40 configurations of many file systems, identifying many differences and some serious flaws.



SOSP 2015 - Proceedings of the 25th ACM Symposium on Operating Systems Principles, 2015, pp. 38-53

Author affiliation

/Organisation/COLLEGE OF SCIENCE AND ENGINEERING/Department of Computer Science


AM (Accepted Manuscript)

Published in

SOSP 2015 - Proceedings of the 25th ACM Symposium on Operating Systems Principles





Available date


Publisher version



Usage metrics