FileSystem compl - PowerPoint PPT Presentation

1 / 11
About This Presentation
Title:

FileSystem compl

Description:

On rebooting, file system check is performed ... Journaling file-system. An alternative approach. a basic journal file system is made up of: ... – PowerPoint PPT presentation

Number of Views:40
Avg rating:3.0/5.0
Slides: 12
Provided by: patt207
Category:

less

Transcript and Presenter's Notes

Title: FileSystem compl


1
FileSystem (compl)
2
Checking the file-system
  • If system crashes in the middle of an update?
  • Recall, for a data-block update, need to
  • Update file directory info
  • Update file-control block
  • Update data-block itself

3
Checking the file-system (2)
  • On rebooting, file system check is performed
  • Checks inconsistencies among blocks and
    reference-info
  • Fsck operation (unix)
  • Scandisk (windows)

4
Journaling file-system
  • An alternative approach
  • a basic journal file system is made up of
  • Journal Data Structure (log-type data structure)
  • Meta-Data for the actual data
  • The actual data

5
Functionality of JFS
  • Before updating data on the disk
  • Add entry into the journal about what is going to
    happen
  • When fsys operation is completed
  • Commit the transaction by adding info on
    meta-data.

6
Functionality of JFS (2)
  • logical file system interface
  • JFS
  • Intermediate layer fsys (FCBs, block org.)
  • Physical Layer IO

Transaction-based interface
7
JFS does
  • transaction management
  • All operations of a transaction succeed or none
  • Maintenance of log-info
  • Ordering
  • Can help recovery of operations/data after a
    crash
  • Undo/redo

8
Without JFS
  • IF UNMOUTED NICELY THEN
  • ASSUME data is Okay
  • Mount the file system
  • ELSE IF UNMOUNTED DIRTY THEN
  • ASSUME potential inconsistency
  • FIX problem, scan whole disk
  • // above takes a long time
  • // more so as the partition is
    larger
  • Mount the file system
  • END IF

9
With JFS
  • IF UNMOUTED NICELY THEN
  • ASSUME data is Okay
  • Mount the file system
  • ELSE IF UNMOUNTED DIRTY THEN
  • // no assumptions made
  • READ LAST FEW JOURNAL Entries
  • // takes seconds, not much data to look
    at
  • FIX inconsistencies
  • Mount file system
  • ENDIF

10
On JFS implementation
  • JFS builds on data-base technology
  • Uses intermediate fsys of the system it is
    implemented on (files, fcbs, ) to store info

11
JFS systems
  • Unix/linux
  • Ext3
  • FeiserFS (suitable for small files)
  • XFS (SGI)
  • Veritas (Sun)
  • Windows
  • NTFS
Write a Comment
User Comments (0)
About PowerShow.com