kubernetes/pkg/util/mount
Jan Safranek 4cf36b8b39 Do not reformat devices with partitions
lsblk reports FSTYPE of devices with partition tables as empty string "",
which is indistinguishable from empty devices. We must look for dependent
devices (i.e. partitions) to see that the device is really empty and report
error otherwise.

I checked that LVM, LUKS and MD RAID have their own FSTYPE in lsblk output,
so it should be only a partition table that has empty FSTYPE.

The main point of this patch is to run lsblk without "-n", i.e. print all
dependent devices and check if they're there.
2017-03-20 13:08:13 +01:00
..
BUILD start the apimachinery repo 2017-01-11 09:09:48 -05:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
fake.go fix FakeMounter to work with OSX 2017-02-15 16:14:33 -08:00
mount_linux_test.go Use fnv.New32a() in hash instead adler32 2017-02-15 14:03:54 +08:00
mount_linux.go Do not reformat devices with partitions 2017-03-20 13:08:13 +01:00
mount_unsupported.go Revert "Revert "Merge pull request #35821 from vishh/gci-mounter-scope"" 2016-11-08 11:09:10 -08:00
mount.go Use chroot for containerized mounts 2017-02-24 13:46:26 -08:00
nsenter_mount_unsupported.go This change supports robust kubelet volume cleanup 2016-08-15 11:29:15 -07:00
nsenter_mount.go fixed absense to absence 2016-10-14 16:28:46 +02:00
OWNERS Add owner file in /pkg/util/mount package 2017-02-06 10:51:26 -08:00
safe_format_and_mount_test.go Do not reformat devices with partitions 2017-03-20 13:08:13 +01:00