Storage Management Flashcards
File
Contiguous logical address space; abstract data type
Types of files
Data numeric character binary Program Read/write depending on type of file
File operations
Create Write Read Reposition within file Delete Truncate Open(Fi) – search the directory structure on disk for entry Fi, and move the content of entry to memory Close (Fi) – move the content of entry Fi in memory to directory structure on disk
File attributes
Name – only information kept in human-readable form Identifier – unique tag (number) identifies file within file system Type – needed for systems that support different types Location – pointer to file location on device Size – current file size Protection – controls who can do reading, writing, executing Time, date, and user identification – data for protection, security, and usage monitoring Information about files are kept in the directory structure, which is maintained on the disk
File system organization
Partition contains directory and files Root, top level for structure
File system mounting
file system must be mounted before it can be accessed
File directory operations
each operation changes structure Search for a file Create a file Delete a file List a directory Rename a file Traverse the file system
File control block
File permissions File dates File owner, group, ACL File size File data blocks or pointers to file data blocks
File allocation methods
Contiguous allocation Linked Allocation Indexed Allocation
File specification standards
Name conventions Functions to implement What media to use SCSI - small computer system Examples: FAT16 - file access table, MSDOS, 16 bit, 8+3 names FAT32 - file access table (windows), short names NTFS ex FAT
File System Implementation
Group of sectors, sector = 512 bytes Fragmentation (holes) addressed in file linking in file partition table Disk sizes growing, 512 bytes meaningless Clusters - 8 sectors, or user defined
Directory Implementation
- Linear list (linked list or B tree) 2. Hash table (if collision, set up linked list)
Raw partition file system
no file system,no files; write directly to sectors
Contiguous allocation
similar to contiguous memory, same issues each file occupies set of blocks on disk simple; need start loc + number of blocks random access access times better do not need to search for files just need start and end address wastes space, files cannot grow creates holes; need to shuffle, compact, defrag
Extant based systems
modified contiguous allocation