Switching disks when accessing a filesystem
Switching disks when accessing a filesystem
- Subject: Switching disks when accessing a filesystem
- From: Dave Rehring <email@hidden>
- Date: Fri, 27 Feb 2004 12:39:55 -0800
What I want to do is, when the user double-clicks on a file in
FileSystemA/VolumeA that I'm writing is:
-copy the selected file to a folder pre-selected by the end-user on VolumeB
-have the OS directly access the file on VolumeB as if there was no VolumeA
From looking at the WebDAV source in Darwin, it appears that it kind of does
this, except it 'happens' at the wrong spot. It downloads the file into
/tmp, but applications don't directly access it. They still go through the
WebDAV filesystem, which accesses the file in /tmp. I need to instead have
applications directly access the file [so if they double-click on a file
twice, two copies of the file would be in the local folder for example].
I was thinking of trying to track down the vnode of the file on VolumeB
[after I copy the file from VolumeA to VolumeB] and returning that vnode
instead of one from VolumeA.
Does this sound like a reasonable thing to do, or would the OS get confused
about this sort of thing?
Later,
--
David Rehring Psychos do not explode when light hits
VP of Research and Development them, no matter how crazy they are...
Atimi Software, Inc.
www.atimi.com And totally insane guy!
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.