Opened 8 years ago
Closed 8 years ago
#676 closed defect (fixed)
ext4 shoots before it asks
Reported by: | Jiri Svoboda | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 0.7.1 |
Component: | helenos/fs/ext4fs | Version: | mainline |
Keywords: | Cc: | ||
Blocker for: | Depends on: | ||
See also: |
Description
During processing a mounted request, ext4fs will do an ext4_filesystem_init(), then call ext4_filesystem_check_sanity(). If that fails, it will call ext4_filesystem_fini(). However, the init function actually writes the superblock, marking the file system as mounted, wile the fini function writes the superblock marking the file system as unmounted.
This is not very good practice. We should perform the sanity check first and only modify the on-disk image afterwards.
Note:
See TracTickets
for help on using tickets.
Fixed in changeset:mainline,2609.