Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Feb 5, 2009, 12:20 AM   #1
mattrobs
macrumors member
 
Join Date: Jun 2008
Hard linking to folders

John Siracusa mentions that Time Machine does what it does because Leopard now allows hard linking to folders.

How do I do that? I've tried the ln command with no options, but I get source Is a directory error.

Help?
mattrobs is offline   0 Reply With Quote
Old Feb 5, 2009, 03:46 AM   #2
gnasher729
macrumors G5
 
gnasher729's Avatar
 
Join Date: Nov 2005
Quote:
Originally Posted by mattrobs View Post
John Siracusa mentions that Time Machine does what it does because Leopard now allows hard linking to folders.

How do I do that?
You don't. Time Machine can do it because it does things under very controlled circumstances, and you can only create hard links on your backup drive by using Time Machine. The OS doesn't allow you to create hard links to directories in any other way.

Being able to create hard links to directories would make it possible to create cycles between directories, causing all kinds of problems, possible or even likely creashes etc. imagine what happens if folder A is a hard link to folder B, and folder B is a hard link to folder A, and the Finder tries to display the contents of folder A.
gnasher729 is offline   0 Reply With Quote
Old Feb 7, 2009, 05:00 PM   #3
kylos
macrumors 6502a
 
kylos's Avatar
 
Join Date: Nov 2002
Location: MI
WRT Hard links

I've been curious, I've been told to be ever so careful when dealing with hard links and multiple volumes. If I were to attempt to make a manual archive of Backups.backupdb on another volume using Finder, would I run into problems or will Finder properly handle the hard links when copying the files to a new volume?
kylos is offline   0 Reply With Quote
Old Feb 7, 2009, 07:11 PM   #4
gnasher729
macrumors G5
 
gnasher729's Avatar
 
Join Date: Nov 2005
Quote:
Originally Posted by Kyle? View Post
I've been curious, I've been told to be ever so careful when dealing with hard links and multiple volumes. If I were to attempt to make a manual archive of Backups.backupdb on another volume using Finder, would I run into problems or will Finder properly handle the hard links when copying the files to a new volume?
The Finder wouldn't know the hard links are hard links. Every hour Time Machine creates what looks like a complete backup of your hard drive, but because of hard links, very little data is actually copied. If you copy any single one of those backups using the Finder, the result will be one complete set of data. Copy Backups.backupdb, and you end up with dozens of different copies of your hard drive, taken at different times.
gnasher729 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
can't copy sole folders (system>library) from old hard drive jasonfodor MacBook Pro 0 May 11, 2014 02:47 PM
Arranging Folders by Date on External Hard Drive Not Working on Maverick Blast! OS X Mavericks (10.9) 0 Nov 5, 2013 06:23 PM
How come I can't delete folders off my external hard drive? rockizza08 Mac Peripherals 44 Apr 16, 2013 04:16 PM
Outlook 2011 for Mac Offline Folders to Exchange Folders meymetkaplan Mac Applications and Mac App Store 0 Jan 23, 2013 08:34 AM
Files/Folders on my external hard drive are suddenly not recognisable, please help adelregh OS X 3 Aug 3, 2012 04:35 PM

Forum Jump

All times are GMT -5. The time now is 11:01 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC