xffm and mounting request

edscott wilson garcia edscott at imp.mx
Wed Feb 12 15:34:57 CET 2003


El mar, 11-02-2003 a las 21:51, manny rosa escribió:
> 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.

It's in the TODO list. Haven't had time to get around to it yet, but
eventually will. 

> 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++):

I don't have a mntent.h on my system and "man getmntent" yields nothing.
(using cpp-3.2-7 and gcc-3.2-7).

Edscott

> 
> // 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
> _______________________________________________
> Xfce4-dev mailing list
> Xfce4-dev at moongroup.com
> http://moongroup.com/mailman/listinfo/xfce4-dev
> 





More information about the Xfce4-dev mailing list