Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Alias (48k) - SymLink (4k) ?????

Alias (48k) - SymLink (4k) ?????
Thread Tools
Mac Elite
Join Date: May 2002
Status: Offline
Reply With Quote
Jul 28, 2003, 08:06 PM
 
Can anyone tell me why aliases are so big? can they be made smaller?
     
Professional Poster
Join Date: Sep 2002
Location: New York, NY
Status: Offline
Reply With Quote
Jul 28, 2003, 08:13 PM
 
Aliases and symlinks are not the same thing. Aliases can track a file as it changes names or locations. Symlinks can not. That is why aliases are bigger. I doubt you can make them smaller without breaking them.
Vandelay Industries
     
Professional Poster
Join Date: Nov 2000
Location: Tasmania, Australia
Status: Offline
Reply With Quote
Jul 28, 2003, 08:45 PM
 
Symbolic links merely contain a pathname to the original file and that's it.

An alias contains the HFS file index for the original file, and optionally can contain the pathname as well (depending on how it is created). This file index doesn't change when a file is moved, which is why an alias has the different behaviour to symbolic links.

I've no idea why an alias needs to be that large. I don't really know much about HFS and file index formats but I wouldn't have thought they'd be 40k!

Maybe someone with a bit more knowledge of HFS specifications can offer some insight?
     
Professional Poster
Join Date: Sep 2002
Location: New York, NY
Status: Offline
Reply With Quote
Jul 28, 2003, 09:06 PM
 
I do know that they also have icon data, whereas symlinks do not That could be a source of the increased data size.
Vandelay Industries
     
Grizzled Veteran
Join Date: Apr 2001
Status: Offline
Reply With Quote
Jul 28, 2003, 11:20 PM
 
Holy anal retentiveness!

It's 48K man...find something better to spend your time worrying about.

Wade
     
Mac Elite
Join Date: Oct 2000
Location: Edinburgh, Scotland
Status: Offline
Reply With Quote
Jul 29, 2003, 06:18 AM
 
That brings me to a different question: when did iTunes in OS X stop using HFS+ file index references and start using absolute paths instead?

I used to be able to move files around while being used (in almost any Mac app actually) and the location of any music files I moved while iTunes was open would be remembered at their new locations. However yesterday I installed a new Hard drive and moved (ie, held down command while dragging, not copy then delete) all my music onto that new drive. iTunes is now horribly silent It's lost track of ALL my music!

I suppose it's possible that the Finder's semantics for the 'move' action has changed, but that still doesn't alter the fact that it's very annoying.
ClamXav - the free virus scanner for Mac OS X | Geobunny learns to fly
     
Mac Elite
Join Date: May 2002
Status: Offline
Reply With Quote
Jul 29, 2003, 07:59 AM
 
Thanks guys for the info, was wondering why aliases were eating up my drive space.

Go back to wadesworld and stop wasting my time, haven't you got anything better to do?
     
Senior User
Join Date: May 2001
Status: Offline
Reply With Quote
Jul 29, 2003, 08:23 AM
 
Originally posted by Geobunny:
That brings me to a different question: when did iTunes in OS X stop using HFS+ file index references and start using absolute paths instead?

I used to be able to move files around while being used (in almost any Mac app actually) and the location of any music files I moved while iTunes was open would be remembered at their new locations. However yesterday I installed a new Hard drive and moved (ie, held down command while dragging, not copy then delete) all my music onto that new drive. iTunes is now horribly silent It's lost track of ALL my music!

I suppose it's possible that the Finder's semantics for the 'move' action has changed, but that still doesn't alter the fact that it's very annoying.
You moved the files, yes. But to a different volume. HFS(+) file IDs can't be guaranteed to be the same when you move files to a different volume.

That said, I don't know if iTunes uses them anymore.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 08:25 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2