First off, I'd strongly encourage you not to support MacFUSE versions older than 1.0.0. It's not that I'm oblivious to the users' perceived "inconvenience" in upgrading, but MacFUSE was quite volatile in its early days. If developers provide the means to support older, worse versions, that results in poorer user experience and extra support issues for me that I don't want to (can't/won't) deal with. From now on, MacFUSE (and its options) won't change as drastically as before, so really, try to make 1.0.0 your minimum requirement. A MacFUSE upgrade is really easy--small download, no reboot required.
That said, the best solution to your problem would be for me to add a function to the user-space library that you can call at runtime. Right now, there are numerous things you can do to determine the MacFUSE version (caveat: if somebody just upgraded their MacFUSE, they might still have an older version loaded in the kernel): 1. Run mount_fusefs $ MOUNT_FUSEFS_CALL_BY_LIB=1 /Library/Filesystems/fusefs.fs/Support/ mount_fusefs --version MacFUSE mount version 1.0.1 2. Use defaults $ defaults read /Library/Filesystems/fusefs.fs/Contents/Info CFBundleVersion 1.0.1 3. Use the sysctl command (this reads the version from a *loaded* kernel extension--no extension loaded=>error) $ sysctl macfuse.version macfuse.version.api_major: 7 macfuse.version.api_minor: 8 macfuse.version.number: 1.0.1 macfuse.version.string: 1.0.1, Nov 2 2007, 00:52:02 4. Use sysctlbyname() in your program to retrieve the value of "macfuse.version.number" or something. 5. strings /usr/local/lib/libfuse.0.dylib *Now*, please forget all these ways. The only appropriate way is for me to provide you a function to do that. I'll add it in the next release. Amit --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "macfuse-devel" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/macfuse-devel?hl=en -~----------~----~----~----~------~----~------~--~---
