1. Trang chủ
  2. » Kinh Tế - Quản Lý

Operating system internal and design principles by williams stallings chapter 012

78 225 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 78
Dung lượng 782,5 KB

Nội dung

File Management Chapter 12 File Management • File management system consists of system utility programs that run as privileged applications • Input to applications is by means of a file • Output is saved in a file for long-term storage File System Properties • Long-term existence • Sharable between processes • Structure File Operations • • • • • • Create Delete Open Close Read Write Terms Used with Files • Field – Basic element of data – Contains a single value – Characterized by its length and data type • Record – Collection of related fields – Treated as a unit • Example: employee record Terms Used with Files • File – Collection of similar records – Treated as a single entity – Have file names – May restrict access • Database – Collection of related data – Relationships exist among elements Typical Operations • • • • • • • • Retrieve_All Retrieve_One Retrieve_Next Retrieve_Previous Insert_One Delete_One Update_One Retrieve_Few File Management Systems • The way a user of application may access files • Programmer does not need to develop file management software Objectives for a File Management System • Meet the data management needs and requirements of the user • Guarantee that the data in the file are valid • Optimize performance • Provide I/O support for a variety of storage device types Objectives for a File Management System • Minimize or eliminate the potential for lost or destroyed data • Provide a standardized set of I/O interface routines • Provide I/O support for multiple users 10 Methods of File Allocation • Indexed allocation – File allocation table contains a separate onelevel index for each file – The index has one entry for each portion allocated to the file – The file allocation table contains block number for the index 64 65 66 UNIX File Management • Types of files – Regular, or ordinary – Directory – Special – Named pipes – Links – Symbolic links 67 Inodes • Index node • Control structure that contains key information for a particular file 68 69 70 71 Linux Virtual File System • Uniform file system interface to user processes • Represents any conceivable file system’s general feature and behavior • Assumes files are objects that share basic properties regardless of the target file system 72 73 74 Primary Objects in VFS • Superblock object – Represents a specific mounted file system • Inode object – Represents a specific file • Dentry object – Represents a specific directory entry • File object – Represents an open file associated with a process 75 Windows File System • Key features of NTFS – Recoverability – Security – Large disks and large files – Multiple data streams – General indexing facility 76 NTFS Volume and File Structure • Sector – The smallest physical storage unit on the disk • Cluster – One or more contiguous sectors • Volume – Logical partition on a disk 77 78 ... management system consists of system utility programs that run as privileged applications • Input to applications is by means of a file • Output is saved in a file for long-term storage File System. .. Concerned with scheduling access to optimize performance • Part of the operating system 16 Logical I/O • Enables users and applications to access records • Provides general-purpose record I/O... access and process data 18 19 File Management Functions • Identify and locate a selected file • Use a directory to describe the location of all files plus their attributes • On a shared system

Ngày đăng: 09/01/2018, 12:01