diff options
author | Christopher Haster <chaster@utexas.edu> | 2018-10-06 02:22:33 +0300 |
---|---|---|
committer | Christopher Haster <chaster@utexas.edu> | 2018-10-18 18:00:49 +0300 |
commit | 795dd8c7ab930892536c6c2ee7c29b8bfac477db (patch) | |
tree | a006878cc33f41db9733c2e0ca98e6b598bb719c /emubd | |
parent | 97a7191814a5900a35f11c3ebac0f6a710a6bb90 (diff) |
Fixed mkdir when inserting into a non-end block
This was an oversight on my part when adding strict ordering to
directories. Unfortunately now we can't take advantage of the atomic
creation of tail+dir entries. Now we need to first create the tail, then
create the actually directory entry. If we lose power, the orphan is
cleaned up like orphans created during remove.
Note that we still take advantage of the atomic tail+dir entries if we
are an end block. This is actually because this corner case is
complicated to _not_ do atomically, needing to update the directory we
just committed to.
Diffstat (limited to 'emubd')
0 files changed, 0 insertions, 0 deletions