• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Restoring hard links
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Restoring hard links


  • Subject: Restoring hard links
  • From: "Trainor, Chris" <email@hidden>
  • Date: Mon, 5 May 2008 20:11:42 -0400
  • Thread-topic: Restoring hard links

I am trying to figure out the best way of handling hard links when backing up and restoring files.  I came across this technote:

 

http://developer.apple.com/technotes/tn/tn1150.html#HardLinks

 

which has this interesting statement in it:

 

“The reason for using a separate link reference number, instead of a catalog node ID, is to allow hard links to be backed up and restored by utilities that are not specifically aware of hard links. As long as they preserve filenames, Finder info, and permissions, then the hard links will be preserved.”

 

This seemed too easy, so I wrote some code that tests restoring the filename, finder info, and permissions for a deleted hard link.  This didn’t work.  After recreating the file, it was not a hardlink. I ended up with multiple copies of the data.

 

Is that statement in the above tech note accurate and I am just doing something wrong or is there more to restoring hard links?

 

Thanks


The information contained in this email message and its attachments is intended only for the private and confidential use of the recipient(s) named above, unless the sender expressly agrees otherwise. Transmission of email over the Internet is not a secure communications medium. If you are requesting or have requested the transmittal of personal data, as defined in applicable privacy laws by means of email or in an attachment to email you must select a more secure alternate means of transmittal that supports your obligations to protect such personal data. If the reader of this message is not the intended recipient and/or you have received this email in error, you must take no action based on the information in this email and you are hereby notified that any dissemination, misuse, copying, or disclosure of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by email and delete the original message.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Restoring hard links
      • From: Mark Day <email@hidden>
  • Prev by Date: Carbon File Mgr vs POSIX performance regarding hard links - conclusion
  • Next by Date: Re: Restoring hard links
  • Previous by thread: Carbon File Mgr vs POSIX performance regarding hard links - conclusion
  • Next by thread: Re: Restoring hard links
  • Index(es):
    • Date
    • Thread