• Seth Nickell's avatar
    Load filesystems from an XML file rather than hardcoding the various · 64ff8e32
    Seth Nickell authored
    2001-08-14  Seth Nickell  <snickell@stanford.edu>
    	Load filesystems from an XML file rather than hardcoding
    	the various attributes and behaviors. Some properties, such
    	as for CDDA and NFS, are still hardcoded because they require
    	actual code. This also makes it easier to add new filesystems.
    	* libnautilus-private/filesystem-attributes.xml
    	Filesystem description file.
    	* libnautilus-private/Makefile.am:
    	Add filesystem-attribute.xml to the build.
    	* libnautilus-private/nautilus-volume-monitor.c:
    	Don't try to detect filesystem strings and associate them
    	with an enumeration type...nix the enumeration altogether
    	since its not compatible with dynamically loading the
    	(get_xml_path), (load_filesystem_attributes_table)
    	Functions for reading in filesystem-attribute.xml and
    	loading the various filesystems into a hashtable.
    	Read in the filesystem attributes table.
    	(get_removable_volumes), (mount_volume_deactivate),
    	(get_mount_list), (get_current_mount_list),
    	Take a file attributes hashtable, or pass one to a
    	CDDA is the only system we need to deal with in an unusual
    	way. Take out a long list and just check for CDDA.
    	Use information read from the file rather than hardcoding
    	a list of filesystems that can use trash (should be the
    	same for now).
    	(make_volume_name_from_path), (mount_volume_make_name)
    	Get name out of the filesystem table rather than hardcoding.
    	We were deciding if a device was *really* a CDROM by
    	doing an ioctl on it to determine the drive status. This
    	is a good check...except that on systems using DevFS
    	devices can be user mountable without being user readable
    	by default. Also, on my system it fails if there's no
    	disk in the drive itself.
    	Continue setting the device if its a floppy drive (eventually
    	this should probably be cleaned out too), but don't set the
    	filesystem type since we don't use the enum anymore.
    	Set as a CDDA device, but not a CDDA volume (since we don't
    	have hardcoded volume types anymore).
    	Don't set NFS type since the enum was blown away.
    	Accept a filesystem table and set attributes read from
    	filesystem-attributes.xml if a volume's filesystem is found
    	in the table. Perhaps eventually we should just assign a
    	reference to the volume entry, but this was simpler for
    	now since some functions modify things like the description.
    	Deal with copying the new attributes.
    	* libnautilus-private/nautilus-volume-monitor.h:
    	Nix the filesystem enumeration. Change NAUTILUS_DEVICE_CD_ROM
    	* src/file-manager/fm-desktop-icon-view.c: (create_mount_link),
    	Deal with rename of NAUTILUS_DEVICE_CD_ROM
    	* src/nautilus-application.c: (volume_mounted_callback):
    	Deal with rename of NAUTILUS_DEVICE_CD_ROM
    	* AUTHORS:
    	Update E-mail address.
    	* configure.in:
    	Make "FAM not found" warning a little more serious and
    	informative. We particularly want to encourage distributors
    	to enable FAM support.
AUTHORS 923 Bytes