SlideShare a Scribd company logo
File Concept, File Management, File
Attributes




                       http://raj-os.blogspot.in/   1
Recap


In the last class, you have learnt

•   Single and two level directories

•   Tree-structured directories




                  http://raj-os.blogspot.in/   2
• HOME     PREVIOUS TOPIC NEXT
• PREVIOUS QUESTION PAPERS FOR
  OS
• CPP TUTORIALS




            http://raj-os.blogspot.in/   3
Objectives

On completion of this period, you would be able to:

• Understand how deletion of a directory from a tree
  structured directory is handled

• Advantages and limitations of tree-structured
  directories

• Understand acyclic-graph directory structure


                   http://raj-os.blogspot.in/     4
Deleting a Directory

• Two cases arise

     • The directory to be deleted is empty

     • The directory to be deleted is non empty




                    http://raj-os.blogspot.in/    5
Deleting an Empty Directory

• Delete its entry from its containing directory




                    http://raj-os.blogspot.in/     6
Deleting a Non Empty Directory

Two ways to handle the situation
  1. Do not delete unless the directory is empty
  2. Request confirmation from the user
     whether the non empty directory is to be
     deleted along with the directory’s files and
     subdirectories


                   http://raj-os.blogspot.in/       7
The First Approach is used by MS-DOS

• If a user wants to delete a non empty directory, he must
  first delete all the files in that directory



• If there are any subdirectories, same procedure must be
  recursively applied



• Involves a substantial amount of work

                         http://raj-os.blogspot.in/          8
The Second Approach is used by Unix


• Provide an option to the user whether that
  directory’s files and subdirectories are also to be
  deleted

• More convenient than the first approach, but more
  dangerous if command to delete is issued in error


                    http://raj-os.blogspot.in/      9
Quiz




http://raj-os.blogspot.in/   10
State whether the following are true or false




              http://raj-os.blogspot.in/        11
State True or False

In a tree structured directory a user can not create his
own subdirectories
                                                  False




                     http://raj-os.blogspot.in/            12
State True or False

• Only a non empty directory can be removed

                                                  False




                     http://raj-os.blogspot.in/           13
State True or False

• An acyclic graph is a natural generalization of a tree-
  structured scheme
                                             True




                       http://raj-os.blogspot.in/           14
Other subject materials

•   Web designing
•   Micro processors
•   C++ tutorials
•   java

home


                 http://raj-os.blogspot.in/   15

More Related Content

PPT
Issues in acyclic graph directories.57 to 58
PPTX
Advantages of tree structured directories(56(1)
PPT
Set model and page fault.44
PPT
Files concepts.53
PPTX
File directory definition 54(2)
PPT
Disk scheduling.49
PPTX
Operations on a directory 54(3
PPT
Issues in acyclic graph directories.57 to 58
Advantages of tree structured directories(56(1)
Set model and page fault.44
Files concepts.53
File directory definition 54(2)
Disk scheduling.49
Operations on a directory 54(3

Viewers also liked (20)

PPT
38 paged segmentation
PPT
41 page replacement fifo
PPTX
File management53(1)
PPT
34 single partition allocation
PPT
35. multiplepartitionallocation
PPTX
Acyclic grapch directory 56(2)
PPT
42 lru optimal
PPT
36 fragmentaio nnd pageconcepts
PPT
Scan scheduling 50 1
PPT
C scan scheduling 50 2
PPT
C look scheduling 51 1
PPT
Single level directory structure.55
PPT
Look scheduling.51
PPT
File protection.59 to 60
PPT
Sstf scheduling.50
PPT
40 demand paging
PPT
Linked allocation 48
PPT
Thrashing allocation frames.43
PPT
39 virtual memory
PPT
Free space managment46
38 paged segmentation
41 page replacement fifo
File management53(1)
34 single partition allocation
35. multiplepartitionallocation
Acyclic grapch directory 56(2)
42 lru optimal
36 fragmentaio nnd pageconcepts
Scan scheduling 50 1
C scan scheduling 50 2
C look scheduling 51 1
Single level directory structure.55
Look scheduling.51
File protection.59 to 60
Sstf scheduling.50
40 demand paging
Linked allocation 48
Thrashing allocation frames.43
39 virtual memory
Free space managment46
Ad

Similar to Deleting structure.56 (20)

PPTX
Double level directory structure 55(1)
PDF
File system in operating system e learning
PDF
10 File System
PPTX
File System.pptx
DOCX
File system interfacefinal
PPTX
CHAPTER 1 - Operating systems File System Interface.pptx
PPTX
Directory structure
PPT
8 0-os file-system management
PDF
File system
PPT
detailed explanation on unix file system
PPT
PDF
oslectureset7.pdf
PPTX
File system ppt by alok kumar kannaujiya sir
PPT
PPT
distributed SYSTEMS FSnewBBIT305KCAU.ppt
PPT
network and system admistration by Chapter 4.ppt
PPTX
directory structure and file system mounting
PPT
Ch11 OS
 
PPT
Double level directory structure 55(1)
File system in operating system e learning
10 File System
File System.pptx
File system interfacefinal
CHAPTER 1 - Operating systems File System Interface.pptx
Directory structure
8 0-os file-system management
File system
detailed explanation on unix file system
oslectureset7.pdf
File system ppt by alok kumar kannaujiya sir
distributed SYSTEMS FSnewBBIT305KCAU.ppt
network and system admistration by Chapter 4.ppt
directory structure and file system mounting
Ch11 OS
 
Ad

More from myrajendra (20)

PPT
Fundamentals
PPT
Data type
PPTX
Hibernate example1
PPTX
Jdbc workflow
PPTX
2 jdbc drivers
PPTX
3 jdbc api
PPTX
4 jdbc step1
PPTX
Dao example
PPTX
Sessionex1
PPTX
Internal
PPTX
3. elements
PPTX
2. attributes
PPTX
1 introduction to html
PPTX
Headings
PPTX
Forms
PPT
PPTX
Views
PPTX
Views
PPTX
Views
PPT
Starting jdbc
Fundamentals
Data type
Hibernate example1
Jdbc workflow
2 jdbc drivers
3 jdbc api
4 jdbc step1
Dao example
Sessionex1
Internal
3. elements
2. attributes
1 introduction to html
Headings
Forms
Views
Views
Views
Starting jdbc

Deleting structure.56

  • 1. File Concept, File Management, File Attributes http://raj-os.blogspot.in/ 1
  • 2. Recap In the last class, you have learnt • Single and two level directories • Tree-structured directories http://raj-os.blogspot.in/ 2
  • 3. • HOME PREVIOUS TOPIC NEXT • PREVIOUS QUESTION PAPERS FOR OS • CPP TUTORIALS http://raj-os.blogspot.in/ 3
  • 4. Objectives On completion of this period, you would be able to: • Understand how deletion of a directory from a tree structured directory is handled • Advantages and limitations of tree-structured directories • Understand acyclic-graph directory structure http://raj-os.blogspot.in/ 4
  • 5. Deleting a Directory • Two cases arise • The directory to be deleted is empty • The directory to be deleted is non empty http://raj-os.blogspot.in/ 5
  • 6. Deleting an Empty Directory • Delete its entry from its containing directory http://raj-os.blogspot.in/ 6
  • 7. Deleting a Non Empty Directory Two ways to handle the situation 1. Do not delete unless the directory is empty 2. Request confirmation from the user whether the non empty directory is to be deleted along with the directory’s files and subdirectories http://raj-os.blogspot.in/ 7
  • 8. The First Approach is used by MS-DOS • If a user wants to delete a non empty directory, he must first delete all the files in that directory • If there are any subdirectories, same procedure must be recursively applied • Involves a substantial amount of work http://raj-os.blogspot.in/ 8
  • 9. The Second Approach is used by Unix • Provide an option to the user whether that directory’s files and subdirectories are also to be deleted • More convenient than the first approach, but more dangerous if command to delete is issued in error http://raj-os.blogspot.in/ 9
  • 11. State whether the following are true or false http://raj-os.blogspot.in/ 11
  • 12. State True or False In a tree structured directory a user can not create his own subdirectories False http://raj-os.blogspot.in/ 12
  • 13. State True or False • Only a non empty directory can be removed False http://raj-os.blogspot.in/ 13
  • 14. State True or False • An acyclic graph is a natural generalization of a tree- structured scheme True http://raj-os.blogspot.in/ 14
  • 15. Other subject materials • Web designing • Micro processors • C++ tutorials • java home http://raj-os.blogspot.in/ 15