Ignore:
Timestamp:
02/04/14 12:42:54 (9 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, releng/10.0.1, releng/10.0.2, releng/10.0.3
Children:
7cfa95e
Parents:
9cf580a
Message:

Clean up the device naming scheme in the mount tray:
1) Do not use glabel for NTFS devices (when mounted through fuse glabel is not consistent in giving the label)
2) Use device's camcontrol identifyier for SATA devices as well as USB devices. This should provide a more specific name than "SATA-Device".
3) For a camcontrol name, append "-" followed by the partition number (so ada0s1a will have a "-1a" appended to the end. Again, this should help devices have unique names.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/pc-mounttray/menuItem.cpp

    rdb3bc52 re417b8a  
    1919    devLabel->setToolTip(device); 
    2020    devLabel->setText(newlabel); 
    21      
    2221  devIcon = new QLabel; 
    2322    devIcon->setToolTip(device); 
     
    114113  for(int i=0; i<chk.length(); i++){ 
    115114    mounted = chk[i].contains(device) || chk[i].contains(devLabel->text()) || chk[i].contains(devLabel->text().replace(" ","-")); 
     115    if(!mounted && chk[i].startsWith("/dev/fuse on ") ){ 
     116      //No method of probing fuse devices to find the original parent (yet) 
     117    } 
    116118    if(mounted){  
    117119      //Save the mountpoint if it is mounted 
Note: See TracChangeset for help on using the changeset viewer.