Skip to content

Flyback 0.6.5.1 does not detect removable drives correctly #94

@GoogleCodeExporter

Description

@GoogleCodeExporter
When flyback is run, not all drives are detected. I have traced the problem to 
backup.py, method get_dev_paths_for_uuid(uuid).

For most of my drives, DEVNAME=sda1, but "mount" returns "/dev/sde1". Now, when 
get_mount_point_for_uuid(uuid) calls "if dev_path in dev_paths" it naturally 
returns false as it compares "/dev/sde1" with "sde1".

Adding this in get_dev_paths_for_uuid after "if line.startswith('E: DEVNAME=')" 
did the trick:
109a110
>       dev_paths.add( '/dev/' + line[line.index('=')+1:].strip() )
131a133
> 


This all happens on:
-  2.6.35-22-generic #34-Ubuntu SMP Sun Oct 10 09:26:05 UTC 2010 x86_64 
GNU/Linux
- Python 2.6.6
- Ubuntu 10.10

Original issue reported on code.google.com by verynot...@gmail.com on 21 Oct 2010 at 9:53

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions