]> git.proxmox.com Git - pve-storage.git/commit - PVE/Storage/NFSPlugin.pm
path based storages: improve the mkdir option
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 31 Aug 2016 08:29:08 +0000 (10:29 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 27 Sep 2016 07:54:53 +0000 (09:54 +0200)
commitc7616abcb278e2b888febc082b557f60676fc376
tree01b7d03653da5c92710030e423162c8b4a37974e
parentff3badd83f9c89f90c262977ffc26a7b0c596241
path based storages: improve the mkdir option

So far this only prevented the creation of the toplevel
directory. This does not cover all problem cases,
particularly when said directory is supposed to be a mount
point, including NFS and glusterfs beside ZFS.

The directory based storages we have already use mkpath
whenever they need to create files, and for actions on files
which are supposed to exist it's fine if it errors out.
So it should also be safe to skip the creation of standard
subdirectories in activate_storage().

Additionally NFS and glusterfs storages should also accept
the mkdir option as they otherwise may exhibit similar
issues, eg. when an NFS storage is mounted onto a directory
inside a ZFS subvolume.
PVE/Storage/GlusterfsPlugin.pm
PVE/Storage/NFSPlugin.pm
PVE/Storage/Plugin.pm