SlideShare a Scribd company logo
1 of 31
Download to read offline
inodes explained
   Tutorial 3 - CSCI212

    by: Roman Tarnavski
Data Blocks

A file system contains ‘blocks’ which hold
data called inodes. A inode describes a
single file in the file system. Typical
information described includes, ownership,
modification times, size and permissions. We
call this information meta-data.
                             Source: CSCI212 Lecture Notes
                                   by: Daniel Saffioti
Data Blocks


Data Blocks

The remainder of the file system (larger proportion)
contains data blocks. These store the contents of
files.

                                 Source: CSCI212 Lecture Notes
                                       by: Daniel Saffioti
Source: CSCI212 Lecture Notes
      by: Daniel Saffioti
Your typical inode
          Mode
       Permissions
           Size
       Timestamps




       Direct Blocks




          Single
         Double
          Triple
Direct
         Data Block 1
         Data Block 2

             .
             .
             .
Direct
Direct   Data Block 3
Direct
Direct
Direct
Direct
Direct
Direct
Direct
Direct
Direct
Direct
Single
Double
Triple
Single
Direct                    Data Block 1
Direct                    Data Block 2
Direct
Direct
Direct                   Data Block 2048

Direct
           Address 1
Direct
           Address 2
Direct
              .
Direct
              .
              .
Direct
          Address 2048
Direct
Direct
Single
Double
Triple
Double
                                          Data Block 1
Direct
                                          Data Block 2
Direct
Direct
Direct                     Address 1
                                         Data Block 2048
Direct                     Address 2
Direct                        .
                              .
                              .
Direct    Address 1
Direct    Address 2       Address 2048
Direct       .                            Data Block 1
             .
             .
Direct                                    Data Block 2
Direct   Address 2048
Direct
                           Address 1
Single                                   Data Block 2048
                           Address 2
Double
                              .
                              .
Triple
                              .
                          Address 2048
Triple
                                                         Data Block 1
                                                         Data Block 2

Direct
                                          Address 1
Direct
                                                        Data Block 2048
                                          Address 2
Direct
                                             .
Direct                                       .
                                             .
          Address 1        Address 1
Direct
          Address 2        Address 2     Address 2048
Direct
             .                .                          Data Block 1
Direct       .                .
             .                .                          Data Block 2
Direct
         Address 2048     Address 2048
Direct
Direct                                    Address 1
                                                        Data Block 2048
Direct                                    Address 2

                                             .
Direct
                                             .
                                             .
Single                     Address 1
Double                                   Address 2048
                           Address 2
Triple                        .
                              .                          Data Block 1
                              .
                                                         Data Block 2
                          Address 2048


                                          Address 1
                                                        Data Block 2048
                                          Address 2

                                             .
                                             .
                           Address 1
                                             .
                           Address 2
                                         Address 2048
                              .
                              .
                              .
                          Address 2048
All Together?
Data Block 1
         Data Block 2

             .
             .
             .
Direct                   Data Block 1
Direct   Data Block 3    Data Block 2
Direct
Direct
Direct                  Data Block 2048

                                           Data Block 1
Direct
          Address 1                        Data Block 2
Direct
                          Address 1
          Address 2
Direct                                    Data Block 2048
                          Address 2
             .
Direct
             .                .
             .
Direct                        .
                              .
         Address 2048                      Data Block 1
Direct
                        Address 2048
                                           Data Block 2
Direct
Single
Double                    Address 1
                                          Data Block 2048
Triple                    Address 2
          Address 1
                              .                                Data Block 1
                              .
          Address 2
                              .                                Data Block 2
             .
             .          Address 2048
             .
                                                 Address 1
         Address 2048
                                                              Data Block 2048
                                                 Address 2

                                                    .
                                                    .
                                                    .
          Address 1         Address 1
          Address 2         Address 2          Address 2048

             .                    .                            Data Block 1
             .                    .
             .                    .                            Data Block 2
         Address 2048     Address 2048

                                                 Address 1
                                                              Data Block 2048
                                                 Address 2

                                                    .
                                                    .
                                                    .
                            Address 1
                                               Address 2048
                            Address 2

                                  .
                                  .                            Data Block 1
                                  .
                                                               Data Block 2
                          Address 2048


                                                 Address 1
                                                              Data Block 2048
                                                 Address 2

                                                    .
                                                    .
                            Address 1
                                                    .
                            Address 2
                                               Address 2048
                                  .
                                  .
                                  .
                          Address 2048
Maximum Size of Direct
       Blocks
Maximum Size of Direct
       Blocks
 Where did the 2048 Addresses come from?
Maximum Size of Direct
       Blocks
 Where did the 2048 Addresses come from?

 Assuming 32-bit architectures
Maximum Size of Direct
       Blocks
 Where did the 2048 Addresses come from?

 Assuming 32-bit architectures

   32-bit = 4 bytes (32 / 8)
Maximum Size of Direct
       Blocks
 Where did the 2048 Addresses come from?

 Assuming 32-bit architectures

   32-bit = 4 bytes (32 / 8)

   Thus 8192                  /4
               [block size]        [bytes per addressable block]
Maximum Size of Direct
       Blocks
 Where did the 2048 Addresses come from?

 Assuming 32-bit architectures

   32-bit = 4 bytes (32 / 8)

   Thus 8192                  /4
               [block size]        [bytes per addressable block]



   = 2048 Addressable Blocks
Questions



What is the maximum possible file size that
can be represented via direct data blocks?
Maximum Size of Direct
       Blocks

    block size
             blocks

 = 8192 x 12 = 98,304 bytes = 96Kb
Maximum FileSize using
 First-Indirect Linking
Maximum FileSize using
 First-Indirect Linking

 Direct: 12 blocks @ 8192 bytes (12 x 8192)
Maximum FileSize using
 First-Indirect Linking

 Direct: 12 blocks @ 8192 bytes (12 x 8192)

   =96Kb
Maximum FileSize using
 First-Indirect Linking

 Direct: 12 blocks @ 8192 bytes (12 x 8192)

    =96Kb

 Indirect: 2048 @ 8192 (2048 x 8192) =
 16,384 Kb = 16,480 [Inclusive of Direct] = 16.09Mb
Maximum using Double
      Indirect

16,875,520 x 2048 addressable blocks

= 34,561,064,960 bytes

= 32,960 Mbytes
Maximum Filesize
        [direct + single + double + triple]




2048 x 32.1875Gb

= 64.375 Tb
Overhead
Overhead
Wish to store: 8,437,760 bytes
Overhead
Wish to store: 8,437,760 bytes

8437760 / 8192   [bytes per block]




= 1030 blocks x 4 bytes              [per address]



BUT
Overhead
Wish to store: 8,437,760 bytes

8437760 / 8192   [bytes per block]




= 1030 blocks x 4 bytes              [per address]



BUT

12 Blocks are stored directly
Overhead
Wish to store: 8,437,760 bytes

8437760 / 8192   [bytes per block]




= 1030 blocks x 4 bytes              [per address]



BUT

12 Blocks are stored directly

Hence we only have 1018 blocks
Overhead
Wish to store: 8,437,760 bytes

8437760 / 8192   [bytes per block]




= 1030 blocks x 4 bytes              [per address]



BUT

12 Blocks are stored directly

Hence we only have 1018 blocks

1018 x 4 bytes = 4072 bytes = 3.98Kbytes

More Related Content

What's hot

Types of Addressing modes- COA
Types of Addressing modes- COATypes of Addressing modes- COA
Types of Addressing modes- COARuchi Maurya
 
8086 Interrupts & With DOS and BIOS by vijay
8086 Interrupts &  With DOS and BIOS  by vijay8086 Interrupts &  With DOS and BIOS  by vijay
8086 Interrupts & With DOS and BIOS by vijayVijay Kumar
 
Code optimization in compiler design
Code optimization in compiler designCode optimization in compiler design
Code optimization in compiler designKuppusamy P
 
Translation Look Aside buffer
Translation Look Aside buffer Translation Look Aside buffer
Translation Look Aside buffer Zara Nawaz
 
Cache memory
Cache memoryCache memory
Cache memoryAnuj Modi
 
Assembly Language Lecture 4
Assembly Language Lecture 4Assembly Language Lecture 4
Assembly Language Lecture 4Motaz Saad
 
Unit 4 assembly language programming
Unit 4   assembly language programmingUnit 4   assembly language programming
Unit 4 assembly language programmingKartik Sharma
 
Register introduction
Register introductionRegister introduction
Register introductionmaamir farooq
 
Registers and-common-bus
Registers and-common-busRegisters and-common-bus
Registers and-common-busAnuj Modi
 
30. 8086 microprocessor pipelined architecture
30. 8086 microprocessor pipelined architecture30. 8086 microprocessor pipelined architecture
30. 8086 microprocessor pipelined architecturesandip das
 
Operand and Opcode | Computer Science
Operand and Opcode | Computer ScienceOperand and Opcode | Computer Science
Operand and Opcode | Computer ScienceTransweb Global Inc
 

What's hot (20)

Types of Addressing modes- COA
Types of Addressing modes- COATypes of Addressing modes- COA
Types of Addressing modes- COA
 
8086 Interrupts & With DOS and BIOS by vijay
8086 Interrupts &  With DOS and BIOS  by vijay8086 Interrupts &  With DOS and BIOS  by vijay
8086 Interrupts & With DOS and BIOS by vijay
 
Code optimization in compiler design
Code optimization in compiler designCode optimization in compiler design
Code optimization in compiler design
 
Application Layer
Application Layer Application Layer
Application Layer
 
Translation Look Aside buffer
Translation Look Aside buffer Translation Look Aside buffer
Translation Look Aside buffer
 
Interface
InterfaceInterface
Interface
 
Cache memory
Cache memoryCache memory
Cache memory
 
Assembly Language Lecture 4
Assembly Language Lecture 4Assembly Language Lecture 4
Assembly Language Lecture 4
 
Branch prediction
Branch predictionBranch prediction
Branch prediction
 
microprocessor
 microprocessor microprocessor
microprocessor
 
Assemblers
AssemblersAssemblers
Assemblers
 
Unit 4 assembly language programming
Unit 4   assembly language programmingUnit 4   assembly language programming
Unit 4 assembly language programming
 
Register introduction
Register introductionRegister introduction
Register introduction
 
Different addressing mode and risc, cisc microprocessor
Different addressing mode and risc, cisc microprocessorDifferent addressing mode and risc, cisc microprocessor
Different addressing mode and risc, cisc microprocessor
 
Registers and-common-bus
Registers and-common-busRegisters and-common-bus
Registers and-common-bus
 
30. 8086 microprocessor pipelined architecture
30. 8086 microprocessor pipelined architecture30. 8086 microprocessor pipelined architecture
30. 8086 microprocessor pipelined architecture
 
Bus aribration
Bus aribrationBus aribration
Bus aribration
 
Sql queries
Sql queriesSql queries
Sql queries
 
Operand and Opcode | Computer Science
Operand and Opcode | Computer ScienceOperand and Opcode | Computer Science
Operand and Opcode | Computer Science
 
Compiler unit 4
Compiler unit 4Compiler unit 4
Compiler unit 4
 

Viewers also liked

Inode explanation
Inode explanationInode explanation
Inode explanationashishkb
 
File System Implementation - Part1
File System Implementation - Part1File System Implementation - Part1
File System Implementation - Part1Amir Payberah
 
PhD Consortium ADBIS presetation.
PhD Consortium ADBIS presetation.PhD Consortium ADBIS presetation.
PhD Consortium ADBIS presetation.Giuseppe Ricci
 
Unix files
Unix filesUnix files
Unix filesSunil Rm
 
Operating Systems (printouts)
Operating Systems (printouts)Operating Systems (printouts)
Operating Systems (printouts)wx672
 
Unit 8
Unit 8Unit 8
Unit 8siddr
 
Linux shell env
Linux shell envLinux shell env
Linux shell envRahul Pola
 
Unix processes
Unix processesUnix processes
Unix processesSunil Rm
 
Unix file systems 2 in unix internal systems
Unix file systems 2 in unix internal systems Unix file systems 2 in unix internal systems
Unix file systems 2 in unix internal systems senthilamul
 
Unit 1
Unit 1Unit 1
Unit 1siddr
 

Viewers also liked (20)

Inode explanation
Inode explanationInode explanation
Inode explanation
 
NTFS and Inode
NTFS and InodeNTFS and Inode
NTFS and Inode
 
Linux
LinuxLinux
Linux
 
File System Implementation - Part1
File System Implementation - Part1File System Implementation - Part1
File System Implementation - Part1
 
Linux File System
Linux File SystemLinux File System
Linux File System
 
Unit 2 ppt
Unit 2 pptUnit 2 ppt
Unit 2 ppt
 
PhD Consortium ADBIS presetation.
PhD Consortium ADBIS presetation.PhD Consortium ADBIS presetation.
PhD Consortium ADBIS presetation.
 
Unix files
Unix filesUnix files
Unix files
 
Operating Systems (printouts)
Operating Systems (printouts)Operating Systems (printouts)
Operating Systems (printouts)
 
Unit 8
Unit 8Unit 8
Unit 8
 
Linux shell env
Linux shell envLinux shell env
Linux shell env
 
Unix processes
Unix processesUnix processes
Unix processes
 
Wafl overview
Wafl overviewWafl overview
Wafl overview
 
Unix ch03-03(2)
Unix ch03-03(2)Unix ch03-03(2)
Unix ch03-03(2)
 
Unix File System
Unix File SystemUnix File System
Unix File System
 
Unix file systems 2 in unix internal systems
Unix file systems 2 in unix internal systems Unix file systems 2 in unix internal systems
Unix file systems 2 in unix internal systems
 
Unix kernal
Unix kernalUnix kernal
Unix kernal
 
Unix training session 1
Unix training   session 1Unix training   session 1
Unix training session 1
 
Ch2
Ch2Ch2
Ch2
 
Unit 1
Unit 1Unit 1
Unit 1
 

Recently uploaded

Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfSanaAli374401
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Shubhangi Sonawane
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...KokoStevan
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 

Recently uploaded (20)

Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 

How inodes Work

  • 1. inodes explained Tutorial 3 - CSCI212 by: Roman Tarnavski
  • 2. Data Blocks A file system contains ‘blocks’ which hold data called inodes. A inode describes a single file in the file system. Typical information described includes, ownership, modification times, size and permissions. We call this information meta-data. Source: CSCI212 Lecture Notes by: Daniel Saffioti
  • 3. Data Blocks Data Blocks The remainder of the file system (larger proportion) contains data blocks. These store the contents of files. Source: CSCI212 Lecture Notes by: Daniel Saffioti
  • 4. Source: CSCI212 Lecture Notes by: Daniel Saffioti
  • 5. Your typical inode Mode Permissions Size Timestamps Direct Blocks Single Double Triple
  • 6. Direct Data Block 1 Data Block 2 . . . Direct Direct Data Block 3 Direct Direct Direct Direct Direct Direct Direct Direct Direct Direct Single Double Triple
  • 7. Single Direct Data Block 1 Direct Data Block 2 Direct Direct Direct Data Block 2048 Direct Address 1 Direct Address 2 Direct . Direct . . Direct Address 2048 Direct Direct Single Double Triple
  • 8. Double Data Block 1 Direct Data Block 2 Direct Direct Direct Address 1 Data Block 2048 Direct Address 2 Direct . . . Direct Address 1 Direct Address 2 Address 2048 Direct . Data Block 1 . . Direct Data Block 2 Direct Address 2048 Direct Address 1 Single Data Block 2048 Address 2 Double . . Triple . Address 2048
  • 9. Triple Data Block 1 Data Block 2 Direct Address 1 Direct Data Block 2048 Address 2 Direct . Direct . . Address 1 Address 1 Direct Address 2 Address 2 Address 2048 Direct . . Data Block 1 Direct . . . . Data Block 2 Direct Address 2048 Address 2048 Direct Direct Address 1 Data Block 2048 Direct Address 2 . Direct . . Single Address 1 Double Address 2048 Address 2 Triple . . Data Block 1 . Data Block 2 Address 2048 Address 1 Data Block 2048 Address 2 . . Address 1 . Address 2 Address 2048 . . . Address 2048
  • 11. Data Block 1 Data Block 2 . . . Direct Data Block 1 Direct Data Block 3 Data Block 2 Direct Direct Direct Data Block 2048 Data Block 1 Direct Address 1 Data Block 2 Direct Address 1 Address 2 Direct Data Block 2048 Address 2 . Direct . . . Direct . . Address 2048 Data Block 1 Direct Address 2048 Data Block 2 Direct Single Double Address 1 Data Block 2048 Triple Address 2 Address 1 . Data Block 1 . Address 2 . Data Block 2 . . Address 2048 . Address 1 Address 2048 Data Block 2048 Address 2 . . . Address 1 Address 1 Address 2 Address 2 Address 2048 . . Data Block 1 . . . . Data Block 2 Address 2048 Address 2048 Address 1 Data Block 2048 Address 2 . . . Address 1 Address 2048 Address 2 . . Data Block 1 . Data Block 2 Address 2048 Address 1 Data Block 2048 Address 2 . . Address 1 . Address 2 Address 2048 . . . Address 2048
  • 12. Maximum Size of Direct Blocks
  • 13. Maximum Size of Direct Blocks Where did the 2048 Addresses come from?
  • 14. Maximum Size of Direct Blocks Where did the 2048 Addresses come from? Assuming 32-bit architectures
  • 15. Maximum Size of Direct Blocks Where did the 2048 Addresses come from? Assuming 32-bit architectures 32-bit = 4 bytes (32 / 8)
  • 16. Maximum Size of Direct Blocks Where did the 2048 Addresses come from? Assuming 32-bit architectures 32-bit = 4 bytes (32 / 8) Thus 8192 /4 [block size] [bytes per addressable block]
  • 17. Maximum Size of Direct Blocks Where did the 2048 Addresses come from? Assuming 32-bit architectures 32-bit = 4 bytes (32 / 8) Thus 8192 /4 [block size] [bytes per addressable block] = 2048 Addressable Blocks
  • 18. Questions What is the maximum possible file size that can be represented via direct data blocks?
  • 19. Maximum Size of Direct Blocks block size blocks = 8192 x 12 = 98,304 bytes = 96Kb
  • 20. Maximum FileSize using First-Indirect Linking
  • 21. Maximum FileSize using First-Indirect Linking Direct: 12 blocks @ 8192 bytes (12 x 8192)
  • 22. Maximum FileSize using First-Indirect Linking Direct: 12 blocks @ 8192 bytes (12 x 8192) =96Kb
  • 23. Maximum FileSize using First-Indirect Linking Direct: 12 blocks @ 8192 bytes (12 x 8192) =96Kb Indirect: 2048 @ 8192 (2048 x 8192) = 16,384 Kb = 16,480 [Inclusive of Direct] = 16.09Mb
  • 24. Maximum using Double Indirect 16,875,520 x 2048 addressable blocks = 34,561,064,960 bytes = 32,960 Mbytes
  • 25. Maximum Filesize [direct + single + double + triple] 2048 x 32.1875Gb = 64.375 Tb
  • 27. Overhead Wish to store: 8,437,760 bytes
  • 28. Overhead Wish to store: 8,437,760 bytes 8437760 / 8192 [bytes per block] = 1030 blocks x 4 bytes [per address] BUT
  • 29. Overhead Wish to store: 8,437,760 bytes 8437760 / 8192 [bytes per block] = 1030 blocks x 4 bytes [per address] BUT 12 Blocks are stored directly
  • 30. Overhead Wish to store: 8,437,760 bytes 8437760 / 8192 [bytes per block] = 1030 blocks x 4 bytes [per address] BUT 12 Blocks are stored directly Hence we only have 1018 blocks
  • 31. Overhead Wish to store: 8,437,760 bytes 8437760 / 8192 [bytes per block] = 1030 blocks x 4 bytes [per address] BUT 12 Blocks are stored directly Hence we only have 1018 blocks 1018 x 4 bytes = 4072 bytes = 3.98Kbytes