TxFS: Leveraging File-System Crash Consistency to Provide ACID Transactions
1
TxFS: Leveraging File-System Crash Consistency to Provide ACID - - PowerPoint PPT Presentation
TxFS: Leveraging File-System Crash Consistency to Provide ACID Transactions Yige Hu, Zhiting Zhu, Ian Neal, Youngjin Kwon, Tianyu Chen, Vijay Chidambaram, Emmett Witchel The University of Texas at Austin 1 Crash Applications need crash
1
2
Crash
3
4
REC 2
… REC 1 COMMIT
5
REC 2 … REC 1 COMMIT
6
7
8
9
10
JBD2 running TX
11
Local TX
11
JBD2 running TX
2
1
12
13
TX1 TX2
14
15
16
17
18
19
Local dentry table
20
Local dentry table
Local dentry table
21
Local dentry table
Local dentry table
Global dentry table
Global inode bitmap Global block bitmap
22
23
24
25
26
27
/* Write attachment */
write(/dir/attachment) fsync(/dir/attachment) fsync(/dir/) /* Update database */
write(/dir/journal) fsync(/dir/journal) fsync(/dir/) write(/dir/db) fsync(/dir/db) unlink(/dir/journal) fsync(/dir/) fs_tx_begin() /* Write attachment */
write(/dir/attachment) fsync(/dir/attachment) fsync(/dir/) /* Update database */
write(/dir/journal) fsync(/dir/journal) fsync(/dir/) write(/dir/db) fsync(/dir/db) unlink(/dir/journal) fsync(/dir/) fs_tx_end() fs_tx_begin() /* Write attachment */
write(/dir/attachment) /* Update database */ write(/dir/db) fs_tx_end()
28
29
30