Commit Graph

18 Commits (5daf01bfd151ceaaa8b8952be9d4f4bd86681da2)

Author SHA1 Message Date
Sami Wagiaalla 52c9a3abe2 RBD return output in error case 2016-01-14 11:33:33 -05:00
k8s-merge-robot 6f50699b93 Merge pull request #17192 from SuhasAnand/SuhasAnand-rbd-attachdisk-fix_unnecessary_call
Auto commit by PR queue bot
2016-01-11 22:07:00 -08:00
Sami Wagiaalla 66c905d63e Distinguish normal mount from format and mount in SafeFormatAndMount 2015-12-02 11:16:00 -05:00
Paul Morie 911757486d Refactor volume.Builder.IsReadOnly() to volume.Builder.GetAttributes() 2015-11-13 23:34:48 -05:00
Suhas ab01a22fef rdb util: AttachDisk: Skip unnecessary call for waitforpath
Skip unnecessary call to waitforpath if found = true during the first call.
2015-11-12 16:32:10 -08:00
Huamin Chen 8dbbcefdec rbd: don't use /dev/rbd/pool/image; use sysfs to find rbd device instead
rbd: if rbd image is not formatted, format it to the designated filesystem type

rbd: update example README.md and include instructions to get base64 encoded Ceph secret

if rbd fails to lock image, unmap the image before exiting

Signed-off-by: Huamin Chen <hchen@redhat.com>
2015-09-29 10:13:01 -04:00
Eric Paris f125ad88ce Rename IsMountPoint to IsLikelyNotMountPoint
IsLikelyNotMountPoint determines if a directory is not a mountpoint.
It is fast but not necessarily ALWAYS correct. If the path is in fact
a bind mount from one part of a mount to another it will not be detected.
mkdir /tmp/a /tmp/b; mount --bin /tmp/a /tmp/b; IsLikelyNotMountPoint("/tmp/b")
will return true. When in fact /tmp/b is a mount point. So this patch
renames the function and switches it from a positive to a negative (I
could think of a good positive name). This should make future users of
this function aware that it isn't quite perfect, but probably good
enough.
2015-08-14 18:45:43 -04:00
Rohith dc23ded091 - fixing the complaint on the gofmt 2015-08-10 23:57:05 +01:00
Rohith bb31cd29ea - fixed the defencing of the rbd lock 2015-08-10 23:33:25 +01:00
Mike Danese 17defc7383 run gofmt on everything we touched 2015-08-05 17:52:56 -07:00
Mike Danese 8e33cbfa28 rewrite go imports 2015-08-05 17:30:03 -07:00
markturansky 8639f24374 rebased and updated 2015-07-29 14:38:40 -04:00
markturansky 920cb34b1e rebased and updated to latest 2015-07-29 14:38:40 -04:00
jiangyaoguo 72e899e1b5 refector rbd volume to seperate builder and cleaner 2015-07-26 01:11:25 +08:00
Huamin Chen fa8a2ef81d fencing off multiple rbd mount
Signed-off-by: Huamin Chen <hchen@redhat.com>
2015-07-24 11:49:32 -04:00
markturansky fe6399a689 Changed plugin name from exported to private 2015-06-29 13:07:22 -04:00
Huamin Chen 0280dac6b1 check IsNotExist error when validating mountpoint
Signed-off-by: Huamin Chen <hchen@redhat.com>
2015-06-17 15:25:15 -04:00
Huamin Chen 4a800fd10e add rados block device(rbd) volume plugin
Signed-off-by: Huamin Chen <hchen@redhat.com>
2015-05-21 14:51:31 -04:00