g2p / bedup

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

[Error 20] NotADirectoryError #31

Open breznak opened 11 years ago

breznak commented 11 years ago

Running master on btrfs, some files deduped fine, got this error:

Deduplicated:
- '/home/marek/devel/nupic-linux64/nta/eng/share/test/data/PicPredictionNetwork.xml'
- '/home/marek/devel/nupic/qa/shared_data/PicPredictionNetwork.xml'
06.96 Size group 23/29 (10485760) sampled 61 hashed 45 freed 385116835
Traceback (most recent call last):
  File "/usr/bin/bedup", line 9, in <module>
    load_entry_point('bedup==0.9.0', 'console_scripts', 'bedup')()
  File "/usr/lib/python3.3/site-packages/bedup/__main__.py", line 486, in script_main
    sys.exit(main(sys.argv))
  File "/usr/lib/python3.3/site-packages/bedup/__main__.py", line 475, in main
    return args.action(args)
  File "/usr/lib/python3.3/site-packages/bedup/__main__.py", line 190, in vol_cmd
    dedup_tracked(sess, [vol], tt, defrag=args.defrag)
  File "/usr/lib/python3.3/site-packages/bedup/tracking.py", line 405, in dedup_tracked
    dedup_tracked1(ds, comm1)
  File "/usr/lib/python3.3/site-packages/bedup/tracking.py", line 474, in dedup_tracked1
    with ds.open_by_inode(inode) as rfile:
  File "/usr/lib/python3.3/contextlib.py", line 48, in __enter__
    return next(self.gen)
  File "/usr/lib/python3.3/site-packages/bedup/tracking.py", line 444, in open_by_inode
    rfile = fopenat(inode.vol.live.fd, pathb)
  File "/usr/lib/python3.3/site-packages/bedup/platform/openat.py", line 49, in fopenat
    return os.fdopen(openat(base_fd, path, os.O_RDONLY), 'rb')
  File "/usr/lib/python3.3/site-packages/bedup/platform/openat.py", line 40, in openat
    raise IOError(ffi.errno, os.strerror(ffi.errno), (base_fd, path))
NotADirectoryError: [Errno 20] Not a directory: (6, b'honza/.mozilla/firefox/fpmc5k3u.default/compatibility.ini/firefox/7bgulhg6.default/places.sqlite')

Cmd: $ sudo bedup dedup --no-crossvol --flush --defrag

Thanks,