From 1a18d8e6098633f27c228f6ebce8881a061df54c Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sun, 1 Jul 2018 15:48:53 +0200 Subject: fsck: rename "CorruptItems" channel to "MitigatedCorruptions" Make it clear that this channel is only used to report corruptions that are transparently mitigated and do not return an error to the user. --- fsck.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'fsck.go') diff --git a/fsck.go b/fsck.go index 9f735f2..7376f2d 100644 --- a/fsck.go +++ b/fsck.go @@ -38,7 +38,7 @@ func (ck *fsckObj) dir(path string) { go func() { for { select { - case item := <-ck.fs.CorruptItems: + case item := <-ck.fs.MitigatedCorruptions: fmt.Printf("fsck: corrupt entry in dir %q: %q\n", path, item) ck.markCorrupt(filepath.Join(path, item)) case <-done: @@ -102,7 +102,7 @@ func (ck *fsckObj) file(path string) { go func() { for { select { - case item := <-ck.fs.CorruptItems: + case item := <-ck.fs.MitigatedCorruptions: fmt.Printf("fsck: corrupt file %q (inode %s)\n", path, item) ck.markCorrupt(path) case <-done: @@ -132,7 +132,7 @@ func (ck *fsckObj) xattrs(path string) { go func() { for { select { - case item := <-ck.fs.CorruptItems: + case item := <-ck.fs.MitigatedCorruptions: fmt.Printf("fsck: corrupt xattr name on file %q: %q\n", path, item) ck.markCorrupt(path + " xattr:" + item) case <-done: @@ -164,7 +164,7 @@ func fsck(args *argContainer) { args.allow_other = false pfs, wipeKeys := initFuseFrontend(args) fs := pfs.(*fusefrontend.FS) - fs.CorruptItems = make(chan string) + fs.MitigatedCorruptions = make(chan string) ck := fsckObj{ fs: fs, } -- cgit v1.2.3