Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot handle mount points with spaces in them #91

Open
MarcelWaldvogel opened this issue Jul 13, 2017 · 0 comments
Open

Cannot handle mount points with spaces in them #91

MarcelWaldvogel opened this issue Jul 13, 2017 · 0 comments

Comments

@MarcelWaldvogel
Copy link

bedup fails when any btrfs filesystem is mounted on a path with a space in it. This happens when a file system with a label with a space in it is automounted. It also happens when a filter without spaces (e.g., /dev/sdxx) is given to select this file system.

Sample output:

# bedup dedup
Traceback (most recent call last):
  File "/usr/local/bin/bedup", line 11, in <module>
    load_entry_point('bedup==0.10.1', 'console_scripts', 'bedup')()
  File "/usr/local/lib/python3.5/dist-packages/bedup/__main__.py", line 497, in script_main
    sys.exit(main(sys.argv))
  File "/usr/local/lib/python3.5/dist-packages/bedup/__main__.py", line 486, in main
    return args.action(args)
  File "/usr/local/lib/python3.5/dist-packages/bedup/__main__.py", line 127, in vol_cmd
    vols = whole_fs.load_all_writable_vols(tt)
  File "/usr/local/lib/python3.5/dist-packages/bedup/filesystem.py", line 560, in load_all_writable_vols
    fs.root_info
  File "/usr/local/lib/python3.5/dist-packages/sqlalchemy/util/langhelpers.py", line 764, in __get__
    obj.__dict__[self.__name__] = result = self.fget(obj)
  File "/usr/local/lib/python3.5/dist-packages/bedup/filesystem.py", line 191, in root_info
    fd = os.open(self.minfos[0].mpoint, os.O_DIRECTORY)
FileNotFoundError: [Errno 2] No such file or directory: '/media/marcel/Backup\\040Marcel\\040Waldvogel'

Could it be that the mount point path is escaped too many times?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant