Skip to content

Commit

Permalink
Merge pull request #45 from cern-eos/fsck_ec
Browse files Browse the repository at this point in the history
Adding ec categories for fsck
  • Loading branch information
ccaffy authored Oct 16, 2024
2 parents 70c82d7 + 1a33e77 commit 921d23d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eosclient/eos.go
Original file line number Diff line number Diff line change
Expand Up @@ -1363,7 +1363,7 @@ func (c *Client) FsckReport(ctx context.Context, username string) ([]*FsckInfo,
func (c *Client) parseFsckInfo(raw string) ([]*FsckInfo, error) {
fsckInfo := []*FsckInfo{}
rawLines := strings.Split(raw, "\n")
var re = regexp.MustCompile(`d_cx_diff|d_mem_sz_diff|m_cx_diff|m_mem_sz_diff|orphans_n|rep_diff_n|rep_missing_n|unreg_n`)
var re = regexp.MustCompile(`d_cx_diff|d_mem_sz_diff|m_cx_diff|m_mem_sz_diff|orphans_n|rep_diff_n|rep_missing_n|unreg_n|blockxs_err|stripe_err`)
for _, rl := range rawLines {
if !strings.Contains(rl, "Info") && re.MatchString(rl) {
fsck, err := c.parseFsckLineInfo(rl)
Expand Down

0 comments on commit 921d23d

Please sign in to comment.