File Attrributes | File Operations Tutorial - 2

Published: 07 August 2019
on channel: 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:


On this page of the site you can watch the video online File Attrributes | File Operations Tutorial - 2 with a duration of hours minute second in good quality, which was uploaded by the user TechGuiders 07 August 2019, share the link with friends and acquaintances, this video has already been watched 4,716 times on youtube and it was liked by 45 viewers. Enjoy your viewing!