File Attrributes | File Operations Tutorial - 2

Publicado el: 07 agosto 2019
en el canal de: 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:


En esta página del sitio puede ver el video en línea File Attrributes | File Operations Tutorial - 2 de Duración hora minuto segunda en buena calidad , que subió el usuario TechGuiders 07 agosto 2019, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 4,716 veces y le gustó 45 a los espectadores. Disfruta viendo!