k3s/pkg/volume
Sami Wagiaalla ab0258f259 Support formatting and mounting GCE PD without 'safe_format_and_mount'
The GCE PD plugin uses safe_format_and_mount found on standard GCE images:

https://github.com/GoogleCloudPlatform/compute-image-packages/blob/master/google-startup-scripts/usr/share/google/safe_format_and_mount

On custom images where this is not available pods fail to format and
mount GCE PDs. This patch uses linux utilities in a similar way to the
safe_format_and_mount script to format and mount the GCE PD and AWS EBC
devices. That is first attempt a mount. If mount fails try to use file to
investigate the device. If 'file' fails to get any information about
the device and simply returns "data" then assume the device is not
formatted and format it and attempt to mount it again.

Signed-off-by: Sami Wagiaalla <swagiaal@redhat.com>
2015-08-26 11:53:40 -04:00
..
aws_ebs Support formatting and mounting GCE PD without 'safe_format_and_mount' 2015-08-26 11:53:40 -04:00
empty_dir Rename IsMountPoint to IsLikelyNotMountPoint 2015-08-14 18:45:43 -04:00
gce_pd Support formatting and mounting GCE PD without 'safe_format_and_mount' 2015-08-26 11:53:40 -04:00
git_repo Correcting all go vet errors 2015-08-11 13:55:37 -07:00
glusterfs Merge pull request #6945 from eparis/IsMountPoint 2015-08-19 12:47:51 -07:00
host_path Moving everyone to unversioned client 2015-08-18 10:23:03 -07:00
iscsi Merge pull request #6945 from eparis/IsMountPoint 2015-08-19 12:47:51 -07:00
nfs Merge pull request #6945 from eparis/IsMountPoint 2015-08-19 12:47:51 -07:00
persistent_claim Moving everyone to unversioned client 2015-08-18 10:23:03 -07:00
rbd Merge pull request #6945 from eparis/IsMountPoint 2015-08-19 12:47:51 -07:00
secret Merge pull request #6945 from eparis/IsMountPoint 2015-08-19 12:47:51 -07:00
util Make copyright ownership statement generic 2015-05-01 17:49:56 -04:00
doc.go Make copyright ownership statement generic 2015-05-01 17:49:56 -04:00
plugins.go Moving everyone to unversioned client 2015-08-18 10:23:03 -07:00
plugins_test.go rewrite go imports 2015-08-05 17:30:03 -07:00
testing.go Moving everyone to unversioned client 2015-08-18 10:23:03 -07:00
util.go Moving everyone to unversioned client 2015-08-18 10:23:03 -07:00
util_test.go rewrite go imports 2015-08-05 17:30:03 -07:00
volume.go IsReadOnly bool on builder 2015-07-29 14:35:37 -04:00