Bug #8254

ZFS allows datasets named .. or .

Added by Josh Paetzel 11 months ago. Updated 11 months ago.

Status:NewStart date:2017-05-20
Priority:LowDue date:
Assignee:-% Done:

0%

Category:zfs - Zettabyte File System
Target version:-
Difficulty:Bite-size Tags:needs-triage

Description

ZFS allows datasets to be named either '..' or '.'

These names when the default mountpoint is used will make ZFS very unhappy.

In the process of doing zfs create tank/.system if your cat jumps up on your keyboard while you have zfs create tank/. typed out and hits enter ZFS will helpfully create a dataset named tank/. for you and mount it to tank/. or even worse if you are mounting root off tank /.

Hilarity will then ensue...how much hilarity depends on whether you mount root off tank or not.

History

#1 Updated by Josh Paetzel 11 months ago

Pull request will be forthcoming.

Also available in: Atom