diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2013-07-25 05:42:40 +0000 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2013-07-25 05:42:40 +0000 |
commit | 2678239f5ad4f7d91a2214332c67ef3c688ad59a (patch) | |
tree | 2c5d1cb083e1c107a26cf41b61175290f7a7e625 /libgphoto2_port/disk | |
parent | 850d7c82964d68d49115503859eb69642d29cfc5 (diff) | |
download | libgphoto2-2678239f5ad4f7d91a2214332c67ef3c688ad59a.tar.gz |
also check some types in fstype
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14495 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'libgphoto2_port/disk')
-rw-r--r-- | libgphoto2_port/disk/disk.c | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/libgphoto2_port/disk/disk.c b/libgphoto2_port/disk/disk.c index 9f87ef4b9..24fe743c8 100644 --- a/libgphoto2_port/disk/disk.c +++ b/libgphoto2_port/disk/disk.c @@ -122,7 +122,17 @@ gp_port_library_list (GPPortInfoList *list) (NULL != strstr(mntent->mnt_fsname,"devtmpfs"))|| (NULL != strstr(mntent->mnt_fsname,"devpts"))|| (NULL != strstr(mntent->mnt_fsname,"sysfs"))|| - (NULL != strstr(mntent->mnt_fsname,"gphotofs")) + (NULL != strstr(mntent->mnt_fsname,"gphotofs")|| + /* fstype based */ + (NULL != strstr(mntent->mnt_type,"autofs")) || + (NULL != strstr(mntent->mnt_type,"nfs")) || + (NULL != strstr(mntent->mnt_type,"smbfs"))|| + (NULL != strstr(mntent->mnt_type,"proc"))|| + (NULL != strstr(mntent->mnt_type,"sysfs"))|| + (NULL != strstr(mntent->mnt_type,"fuse"))|| + (NULL != strstr(mntent->mnt_type,"cifs"))|| + (NULL != strstr(mntent->mnt_type,"afs")) +) ) { continue; } @@ -174,7 +184,16 @@ gp_port_library_list (GPPortInfoList *list) (NULL != strstr(mntent->mnt_fsname,"devtmpfs"))|| (NULL != strstr(mntent->mnt_fsname,"devpts"))|| (NULL != strstr(mntent->mnt_fsname,"sysfs"))|| - (NULL != strstr(mntent->mnt_fsname,"gphotofs")) + (NULL != strstr(mntent->mnt_fsname,"gphotofs"))|| + /* fstype based */ + (NULL != strstr(mntent->mnt_type,"autofs")) || + (NULL != strstr(mntent->mnt_type,"nfs")) || + (NULL != strstr(mntent->mnt_type,"smbfs"))|| + (NULL != strstr(mntent->mnt_type,"proc"))|| + (NULL != strstr(mntent->mnt_type,"sysfs"))|| + (NULL != strstr(mntent->mnt_type,"fuse"))|| + (NULL != strstr(mntent->mnt_type,"cifs"))|| + (NULL != strstr(mntent->mnt_type,"afs")) ) { continue; } |