From 285c26b474f5a7e0b783ee34a2486bbadbecb6da Mon Sep 17 00:00:00 2001 From: Luciano Lo Giudice Date: Wed, 27 Sep 2023 13:37:40 -0300 Subject: [PATCH] Documentation and error message fixes Signed-off-by: Luciano Lo Giudice --- microceph/ceph/osd.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/microceph/ceph/osd.go b/microceph/ceph/osd.go index b5e0cfd6..a94dd148 100644 --- a/microceph/ceph/osd.go +++ b/microceph/ceph/osd.go @@ -286,7 +286,8 @@ func updateFailureDomain(s *state.State) error { return nil } -// AddOSD adds an OSD to the cluster, given a device path and a flag for wiping +// AddOSD adds an OSD to the cluster, given the data, WAL and DB devices and their respective +// flags for wiping and encrypting. func AddOSD(s *state.State, data types.DiskParameter, wal *types.DiskParameter, db *types.DiskParameter) error { logger.Debugf("Adding OSD %s", data.Path) @@ -384,7 +385,7 @@ func AddOSD(s *state.State, data types.DiskParameter, wal *types.DiskParameter, // Create directory. err = os.MkdirAll(osdDataPath, 0700) if err != nil { - return fmt.Errorf("Failed to bootstrap monitor: %w", err) + return fmt.Errorf("Failed to create OSD directory: %w", err) } // Wipe and/or encrypt the disk if needed.