File Attrributes | File Operations Tutorial - 2

Veröffentlicht am: 07 August 2019
auf dem Kanal: TechGuiders
4,716
45

To understand which are the basic file attributes , file operations and what operating system do for each of these operations
see the complete series
File System Implementation    • Operating System-File System Implementation  
File System Interface    • Operating System-File System Interface  
Operating System-process synchronization at https://www.youtube.com
/watch?v=TLwuWlcnXjE&list=PLskQvPDUk0sJ6RRPdkgO2qziych6vQwZ1
Operating System-Memory Management   • Operating System - Memory Management  

To understand attributes of a file. We keep the files on the secondary storage as well as the information about these files are kept in a directory structure which of the resides on the secondary storage . Now let us see which are the the information about those files or the file attributes.

Name:

identifier:

type:

location:

size:

protection:

time date and user identification:
Next Let Us see which are the file operation and what operating system do each of of these operations

File creation: in order to create a file first of all space for the file should be found.Then an entry should be made in the directory structure with all acquired information including the location.

Writing a file:to write to a file,system call should be made specifying name of the file as well as the information or the content to be written to that file.With the name of the file,the directory will be searched and the location will be found.Pointer will be kept by the system showing where the next read or write should take place.After adding the bytes to the file,the pointer will be updated .

Reading from a file:similarly,to read from a file,is system call if used specifying the the name of the file.Now system searches the directory for the file , find the location,then move to that location.A read Pointer sf also kept where the next read to take place.After the read the read pointer is updated.

A single current file position pointer is maintained instead of separate read and write pointer

repositioning within a file:

deleting a file:


Auf dieser Seite können Sie das Online-Video File Attrributes | File Operations Tutorial - 2 mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer TechGuiders 07 August 2019 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 4,716 Mal angesehen und es wurde von 45 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!