View Single Post
Old 08-18-2012, 10:29 AM   #83
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by knc1 View Post
Another little chore . . . .
FAT-32 does not support symbolic links (required to get the symantics of *nix library sonames correct).

There are (at least) two ways to deal with that:
FAT{,16,32} does partially support hard-links (at least until you run dosfsck on it) ;
The target library of the links could be copied to each of the less specific names (makes a large increase in disk usage, but we have 3Gbytes) ;
or
some combination of the above.

It would probably be appropriate to do that in a custom, post-build, script.


Decisions, decisions, decisions. . . .
On a FAT, your "hard-link" is called a "cross-link". Disk checkers would report that as an error. Cross-linking is a common method of de-duplication used inside .ISO images, which is safe to do when they are mounted read-only (or burned onto read-only media). On a FAT partition it would be better to just provide multiple copies (which is how I did it for my SDL port).

I like how cygwin replaces symlinks with windows shortcuts, but that only works in a cygwin shell. We only have 3GB when the USB drive is not already full of other stuff (like mine), so replacing symlinks with multiple is not an ideal solution, even though it seems to be the most reliable option available on a FAT partition.

Last edited by geekmaster; 08-18-2012 at 11:36 AM.
geekmaster is offline   Reply With Quote