[MacPorts] #27649: ntfs-3g: show mount in finder
MacPorts
noreply at macports.org
Sun Dec 12 04:54:06 PST 2010
#27649: ntfs-3g: show mount in finder
-----------------------------------------+----------------------------------
Reporter: markus.doits@… | Owner: macports-tickets@…
Type: enhancement | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.9.2
Keywords: | Port:
-----------------------------------------+----------------------------------
i just got ntfs-3g to automount my volumes by replacing "/sbin/mount_ntfs"
by "ntfs-3g"
{{{
mv /sbin/mount_ntfs /sbin/mount_ntfs.orig
ln -s /opt/local/bin/ntfs-3g /sbin/mount_ntfs
}}}
this makes ntfs-3g automount my ntfs-volumes. but they don't show up in
finder.
since there is the ntfs-3g-version for mac from tuxera
([http://www.tuxera.com]), where the volumes show up in finder, i searched
in their code a little bit and found this in "ntfs-3g.c":
{{{
#if defined(__APPLE__) || defined(__DARWIN__)
/* If the volume has a volume name, then append the MacFUSE-
specific
* 'volname' option, making the volume name appear in Finder. */
if (ctx->vol->vol_name) {
int i;
size_t vol_name_len = strlen(ctx->vol->vol_name);
char *scrubbed_vol_name =
calloc(1, sizeof(char) * (vol_name_len + 1));
if (scrubbed_vol_name == NULL)
goto err_out;
/* Scrub all ',' characters from the volume name since
they
* would interfere with FUSE argument delimiters. */
for (i = 0; i < vol_name_len; ++i) {
char cur = ctx->vol->vol_name[i];
if(cur == ',')
scrubbed_vol_name[i] = '_';
else
scrubbed_vol_name[i] = cur;
}
scrubbed_vol_name[i] = '\0';
if (strappend(&parsed_options, ",volname="))
goto err_out;
if (strappend(&parsed_options, scrubbed_vol_name))
goto err_out;
free(scrubbed_vol_name);
}
#endif /* defined(__APPLE__) || defined(__DARWIN__) */
}}}
maybe this could be adapted by/added to the ntfs-3g macports version so
the volumes show up in finder?
don't know whether they use a special macfuse or the "volname"-option is
standard.
for reference, the latest source of tuxera ntfs-3g for mac can be found
here: [http://sourceforge.net/projects/catacombae/files/NTFS-
3G%20for%20Mac%20OS%20X/2010.10.2/]:
(so there's an updated version of ntfs-3g out, too: 2010.10.2. will open
another ticket for update)
--
Ticket URL: <https://trac.macports.org/ticket/27649>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list