g2p / bedup

Btrfs deduplication
http://pypi.python.org/pypi/bedup
GNU General Public License v2.0
322 stars 50 forks source link

may crash when files suddenly vanish #18

Closed kakra closed 11 years ago

kakra commented 11 years ago

Some files may vanish during a scan. Bedup should take care for this...

Traceback (most recent call last):
  File "bin/bedup", line 9, in <module>
    load_entry_point('bedup==0.0.8', 'console_scripts', 'bedup')()
  File "/home/kakra/.local/lib64/python2.7/site-packages/bedup-0.0.8-py2.7-linux-x86_64.egg/bedup/__main__.py", line 470, in script_main
    sys.exit(main(sys.argv))
  File "/home/kakra/.local/lib64/python2.7/site-packages/bedup-0.0.8-py2.7-linux-x86_64.egg/bedup/__main__.py", line 459, in main
    return args.action(args)
  File "/home/kakra/.local/lib64/python2.7/site-packages/bedup-0.0.8-py2.7-linux-x86_64.egg/bedup/__main__.py", line 185, in vol_cmd
    dedup_tracked(sess, volset, tt, defrag=args.defrag)
  File "/home/kakra/.local/lib64/python2.7/site-packages/bedup-0.0.8-py2.7-linux-x86_64.egg/bedup/tracking.py", line 381, in dedup_tracked
    dedup_tracked1(sess, tt, ofile_reserved, query, fs, defrag)
  File "/home/kakra/.local/lib64/python2.7/site-packages/bedup-0.0.8-py2.7-linux-x86_64.egg/bedup/tracking.py", line 425, in dedup_tracked1
    with closing(fopenat(inode.vol.live.fd, pathb)) as rfile:
  File "/home/kakra/.local/lib64/python2.7/site-packages/bedup-0.0.8-py2.7-linux-x86_64.egg/bedup/platform/openat.py", line 49, in fopenat
    return os.fdopen(openat(base_fd, path, os.O_RDONLY), 'rb')
  File "/home/kakra/.local/lib64/python2.7/site-packages/bedup-0.0.8-py2.7-linux-x86_64.egg/bedup/platform/openat.py", line 40, in openat
    raise IOError(ffi.errno, os.strerror(ffi.errno), (base_fd, path))
IOError: [Errno 2] No such file or directory: (8, 'kakra/.config/chromium/SingletonLock')