Closed elliott-beach closed 6 years ago
What mode will the link be created in? - Probably we just copy the mode from the src file descriptor. Questions for the TA:
creat
even doing? Understanding it is necessary because link
and unlink
operations exist on the same level of abstraction as create
, so we will need to use create
as a basic example for what to do.
https://github.com/elliott-beach/project3/blob/6c7e23a2061096ff245885463943947b27e24641/Kernel.cc#L286-L358
I don't get it. woo!
Add the method
Kernel.link(path1, path2)
. This createspath2
as a hard link topath1
. It should:Tests: write a new program,
ln.cc
, which, given two path names, links the first to the second.Creating a link to a directory is not allowed.