Click here to Skip to main content
15,887,267 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
JokeRe: Memory problem Pin
FreedMalloc16-Dec-23 4:51
FreedMalloc16-Dec-23 4:51 
GeneralRe: Memory problem Pin
Steve Raw16-Dec-23 6:22
professionalSteve Raw16-Dec-23 6:22 
RantWhy is a resource fork? Pin
honey the codewitch16-Dec-23 1:11
mvahoney the codewitch16-Dec-23 1:11 
GeneralRe: Why is a resource fork? Pin
Richard MacCutchan16-Dec-23 1:14
mveRichard MacCutchan16-Dec-23 1:14 
GeneralRe: Why is a resource fork? Pin
Mike Hankey16-Dec-23 3:22
mveMike Hankey16-Dec-23 3:22 
GeneralRe: Why is a resource fork? Pin
trønderen16-Dec-23 5:02
trønderen16-Dec-23 5:02 
GeneralRe: Why is a resource fork? Pin
honey the codewitch16-Dec-23 6:33
mvahoney the codewitch16-Dec-23 6:33 
GeneralRe: Why is a resource fork? Pin
trønderen16-Dec-23 7:45
trønderen16-Dec-23 7:45 
Well, "nonsense"? It is a different way of organizing data. In a *nix environment, you'd rather be using two dozen tiny little files, sometimes spread all over the place. In my study days, it was claimed that in a typical Unix installation (this was pre-Linux), 80% of the files were smaller than 5K bytes, hence would fit in the 10 disk blocks (of 512 bytes each) directly referenced in the I-node, without needing an index page. (A great argument for why Unix should be chosen over the competitors!) I guess the average file size is somewhat higher today, but still *nix systems tend to have a huge number of small files that must all be present for an application to run, or say, for a build to succeed.

One alternative is to use some container file format. A forked file is a super-simple container file! The problem (or advantage, seen from another point of view) is that most recent (that includes all formats developed this millennium, but not limited to that) container formats are so complex that it takes a good chunk of code to decode. If you do that, you presumably know what you are doing.

If you really need to access the structures in an NTFS ADS "container" file, and you know how to access ADS, writing a tiny program to split the different streams into a directory with one "simple" file per stream. I would assume that it would be equally simple with a Mac forked file. If you don't care about the information in those other streams/forks, just ignore those files. You could have ignored the streams/forks in the original file as well! If you do care, but will not (/can not) use the original file system the simplest way is to unpack it to a directory.

Almost all memory sticks are FAT. What happens when a Mac copies a forked file to a FAT memory stick? Does it loose information? Or does it include a wrapper that makes the set of forks appear as one single file? Or does it create a directory?
GeneralRe: Why is a resource fork? Pin
Richard Andrew x6416-Dec-23 9:48
professionalRichard Andrew x6416-Dec-23 9:48 
GeneralRe: Why is a resource fork? Pin
Gary R. Wheeler16-Dec-23 7:00
Gary R. Wheeler16-Dec-23 7:00 
GeneralRe: Why is a resource fork? Pin
Mark Starr18-Dec-23 3:19
professionalMark Starr18-Dec-23 3:19 
GeneralRe: Why is a resource fork? Pin
trønderen18-Dec-23 3:46
trønderen18-Dec-23 3:46 
GeneralRe: Why is a resource fork? Pin
Mark Starr18-Dec-23 5:48
professionalMark Starr18-Dec-23 5:48 
GeneralRe: Why is a resource fork? Pin
David O'Neil16-Dec-23 13:00
professionalDavid O'Neil16-Dec-23 13:00 
GeneralRe: Why is a resource fork? Pin
Myron Dombrowski18-Dec-23 1:40
Myron Dombrowski18-Dec-23 1:40 
GeneralRe: Why is a resource fork? Pin
David O'Neil18-Dec-23 20:56
professionalDavid O'Neil18-Dec-23 20:56 
GeneralRe: Why is a resource fork? Pin
charlieg19-Dec-23 0:31
charlieg19-Dec-23 0:31 
GeneralRe: Why is a resource fork? Pin
Myron Dombrowski19-Dec-23 7:43
Myron Dombrowski19-Dec-23 7:43 
GeneralRe: Why is a resource fork? Pin
David O'Neil19-Dec-23 20:35
professionalDavid O'Neil19-Dec-23 20:35 
GeneralRe: Why is a resource fork? Pin
Myron Dombrowski20-Dec-23 1:47
Myron Dombrowski20-Dec-23 1:47 
GeneralRe: Why is a resource fork? Pin
David O'Neil20-Dec-23 5:43
professionalDavid O'Neil20-Dec-23 5:43 
GeneralRe: Why is a resource fork? Pin
Matthew Barnett18-Dec-23 8:20
Matthew Barnett18-Dec-23 8:20 
GeneralRe: Why is a resource fork? Pin
Ralf Quint18-Dec-23 11:21
Ralf Quint18-Dec-23 11:21 
GeneralRe: Why is a resource fork? Pin
markchagers18-Dec-23 23:45
markchagers18-Dec-23 23:45 
GeneralRe: Why is a resource fork? Pin
Ralf Quint20-Dec-23 14:59
Ralf Quint20-Dec-23 14:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.