Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksandr Zimin <alexandr.zimin@flant.com>
  • Loading branch information
AleksZimin committed May 31, 2024
1 parent a019e03 commit 546a6ee
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions images/sds-local-volume-csi/pkg/utils/node-store-manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,16 @@ func checkMount(s *Store, source, target string, mountOpts []string) error {
if err != nil {
return fmt.Errorf("[checkMount] failed to list mounts: %w", err)
}
s.Log.Trace("================ checkMount mntInfo ================")
s.Log.Trace(fmt.Sprintf(" : %+v", mntInfo))
s.Log.Trace("================ checkMount mntInfo END ================")

for _, m := range mntInfo {
if m.Path == target {
s.Log.Trace("===============================")
s.Log.Trace(fmt.Sprintf("mount info for target: %s", target))
s.Log.Trace(fmt.Sprintf(" : %+v", m))
s.Log.Trace("================ checkMount END ================")
if m.Device != source {
return fmt.Errorf("[checkMount] device from mount point %q does not match expected source %q", m.Device, source)
}
Expand Down

0 comments on commit 546a6ee

Please sign in to comment.