xffm and mounting request

manny rosa manny_robot_freak at yahoo.com
Wed Feb 12 04:51:17 CET 2003


Is it possible to have xffm list user-mountable
filesystems similar to how it handles bookmarks,
wastebasket, etc. I think it would be more
user-friendly than the xfmount strategy unless xfmount
where able to generate a list of mountable filesystems
and go from there. The point is avoiding the user to
either use the command line or to configure xfmount.
I've been testing some code which simply gets a list
of the entries in /etc/fstab using the getmntent()
function. Here's a sample (forgive me I wrote it in
C++):

// reads /etc/fstab
// See man getmntent
#include<iostream>
#include<mntent.h>

using namespace std;

int main() {
	FILE* fstab_fd;
	mntent* mnt_struct;

	fstab_fd = setmntent("/etc/fstab","r");

	mnt_struct = getmntent(fstab_fd);
	while(mnt_struct != NULL) {
		cout << mnt_struct->mnt_fsname << endl;
		mnt_struct = getmntent(fstab_fd);
	}

	endmntent(fstab_fd);
	return(0);


__________________________________________________
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com



More information about the Xfce4-dev mailing list