EECS 1012 Lecture Notes - Lecture 11: Symbolic Link, Inode

40 views2 pages
EECS 1012 Lecture 11 Notes
Introduction
Network file access
The file creation results in a new i-node, the links now point to different i-nodes and
different versions of the original file.
In other words, the link is broken.
Symbolic links work differently.
With a symbolic link, the new directory entry creates a file that holds a pointer to the
origial file’s pathae.
Then, when accessing the new entry, the symbolic link uses this file to identify the
original pathname.
Even if the original file is physically moved, the link is maintained as long as the original
pathname exists.
Of course, the link is broken if the original file is logically moved to a different directory,
deleted, or renamed.
In this case, an attempt to reference the file specified by the link will cause an error.
UNIX does not attempt to keep track of symbolic links, as it does with hard links.
An additional minor disadvantage of symbolic links is that the symbolic link also requires
the existence of an additional file to hold the link pointer.
The UNIX system does not attempt to avoid cycles.
Instead, it restricts access to the linking capability of the system.
Normal users may only create hard links to files, but not to directories.
This prevents the normal users from inadvertently creating cycles.
Only the system administrators can create links between directories.
It is their responsibility to assure that they do not create cycles.
One of the primary capabilities provided by networks is the access to files on other
systems connected to the network.
find more resources at oneclass.com
find more resources at oneclass.com
Unlock document

This preview shows half of the first page of the document.
Unlock all 2 pages and 3 million more documents.

Already have an account? Log in
ammarmarta2020 and 40175 others unlocked
EECS 1012 Full Course Notes
10
EECS 1012 Full Course Notes
Verified Note
10 documents

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents