Operating System (2140702)

BE | Semester-4   Winter-2018 | 10-12-2018

Q5) (a)

List and explain different file attributes.

File attributes

  • Protection - Who can access the file and in what way.
  • Password - Password needed to access the file.
  • Creator ID of the person who created the file.
  • Owner - Current owner.
  • Read only flag - 0 for read/write, 1 for read only.
  • Hidden flag - 0 for normal, 1 for do not display the listings.
  • System flag - 0 for normal, 1 for system file.
  • Archive flag - 0 for has been backed up, 1 for needs to be backed up.
  • Random access flag - 0 for sequential access only, 1 for random access.
  • Temporary flag 0 for normal, 1 for delete file on process exit.
  • Lock flag - 0 for unlocked, 1 for locked.
  • Record length - Number of bytes in a record.
  • Key position - Offset of the key within each record.
  • Key length - Number of bytes in key field.