From 5c4dc4c3986d4da91f355f8b85263bf4539cf3da Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Fri, 1 Apr 2022 17:57:48 -0400 Subject: [PATCH] Relabeling the btrfs subvolumes is failing with ENOTSUP Just log these errors, but don't fail. Signed-off-by: Daniel J Walsh --- drivers/btrfs/btrfs.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/btrfs/btrfs.go b/drivers/btrfs/btrfs.go index 339aa0d380..7ab69ec23c 100644 --- a/drivers/btrfs/btrfs.go +++ b/drivers/btrfs/btrfs.go @@ -543,7 +543,12 @@ func (d *Driver) Create(id, parent string, opts *graphdriver.CreateOpts) error { mountLabel = opts.MountLabel } - return label.Relabel(path.Join(subvolumes, id), mountLabel, false) + err = label.Relabel(path.Join(subvolumes, id), mountLabel, false) + if err != nil && err != unix.ENOTSUP { + logrus.Debugf("Attempted to relabel %s failed: %v", path.Join(subvolumes, id), err) + return err + } + return nil } // Parse btrfs storage options