[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: plasma hang on unrechable devices
From:       Thiago Macieira <thiago () kde ! org>
Date:       2009-10-20 21:12:06
Message-ID: 200910202312.23527.thiago () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


Em Terça-feira 20. Outubro 2009, às 20.49.44, David Hubner escreveu:
> I am not sure if
> 
> if (fstype == "nfs" || fstype == "nfs4" || fstype == "smbfs" || fstype ==
>  "cifs")
> 
> is a good idea. Would have to updated for new network filesystems and could
>  cause problems if naming changes. Maybe call mnt_fsname and check if a
>  '//' is at the beginning of the char*. I believe all network related names
>  start with a '//' in fsname.

Except for nfs, which uses servername:/export/path. But if you put both 
approaches together, you may come up with a good heuristic algorithm for 
detecting future network mounts.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

["signature.asc" (application/pgp-signature)]

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic