different fstab (or /etc/auto.hal) options for DOS disks
Luke Kenneth Casson Leighton
lkcl at lkcl.net
Sat Oct 2 17:32:44 PDT 2004
david, hi,
um, okay: there are better ways to do this, i am sure.
and for autofs, the scripted method (/etc/auto.hal.sh) is beginning to
look more and more attractive.
... but that leaves fstab-sync in the dark.
i've had to add some specialisation depending on the file system type.
i.e. if it's an msdos filesystem, it's necessary to add a mount option
"-o uid=<theconsoleuser>" ...
where the options for a DOS filesystem are read from a config option
MOUNT_EXTRA_OPTS_DOS from a config file /etc/fstab-sync.conf
for things like smb file systems, it gets even more specialised.
perhaps there should be a per-fstype config option?
l.
/* for times when people want to do "-o uid=someusername" for
* non-user-supporting file system types...
*/
if (strcmp("vfat", volume->fs_type) == 0 ||
strcmp("ntfs", volume->fs_type) == 0 ||
strcmp("msdos", volume->fs_type) == 0)
{
if (extra_mount_opts_dos[0])
{
strcat_len (options, ",");
strcat_len (options, extra_mount_opts_dos);
}
}
else if (extra_mount_opts[0])
{
strcat_len (options, ",");
strcat_len (options, extra_mount_opts);
}
#ifdef FSTAB_SYNC_USE_NOOP_MOUNT_OPTION
strcat_len (options, "," FSTAB_SYNC_MOUNT_MANAGED_KEYWORD);
#endif
--
--
Truth, honesty and respect are rare commodities that all spring from
the same well: Love. If you love yourself and everyone and everything
around you, funnily and coincidentally enough, life gets a lot better.
--
<a href="http://lkcl.net"> lkcl.net </a> <br />
<a href="mailto:lkcl at lkcl.net"> lkcl at lkcl.net </a> <br />
_______________________________________________
hal mailing list
hal at freedesktop.org
http://freedesktop.org/mailman/listinfo/hal
More information about the Hal
mailing list