Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd & meta: add support for directory quota #3268

Merged
merged 52 commits into from
Mar 23, 2023
Merged

cmd & meta: add support for directory quota #3268

merged 52 commits into from
Mar 23, 2023

Conversation

SandyXSD
Copy link
Contributor

No description provided.

@codecov-commenter
Copy link

codecov-commenter commented Feb 26, 2023

Codecov Report

Patch coverage: 66.04% and project coverage change: +0.30 🎉

Comparison is base (a09070c) 54.71% compared to head (c948d98) 55.01%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3268      +/-   ##
==========================================
+ Coverage   54.71%   55.01%   +0.30%     
==========================================
  Files         147      148       +1     
  Lines       35385    36136     +751     
==========================================
+ Hits        19360    19880     +520     
- Misses      13918    14090     +172     
- Partials     2107     2166      +59     
Impacted Files Coverage Δ
cmd/quota.go 59.40% <59.40%> (ø)
pkg/meta/redis.go 65.35% <62.50%> (-0.08%) ⬇️
pkg/meta/tkv.go 69.56% <64.02%> (-0.11%) ⬇️
pkg/meta/sql.go 57.66% <66.91%> (+0.68%) ⬆️
pkg/meta/base.go 65.62% <71.24%> (+0.84%) ⬆️
pkg/meta/interface.go 55.00% <80.00%> (+3.57%) ⬆️
cmd/main.go 45.81% <100.00%> (+0.23%) ⬆️

... and 6 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@github-actions
Copy link

Mutate Test Report
pkg/meta/tkv_fdb_test.go-1-1: score:0.00 failed:0, passed:0, compile error:0, out of coverage:0, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4292872670/jobs/7479872897

Usage: https://github.com/juicedata/juicefs/blob/main/.github/scripts/mutate/how_to_use_mutate_test.md

Signed-off-by: xixi <[email protected]>
@github-actions
Copy link

Mutate Test Report
pkg/meta/base_test.go-2-4: score:0.00 failed:0, passed:0, compile error:0, out of coverage:194, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4413249189/jobs/7733542033

pkg/meta/base_test.go-1-4: score:0.00 failed:1, passed:0, compile error:1, out of coverage:191, skip by comment:0, others:1
Job detail: https://github.com/juicedata/juicefs/actions/runs/4413249189/jobs/7733541895

pkg/meta/tkv_fdb_test.go-1-1: score:0.00 failed:0, passed:0, compile error:0, out of coverage:0, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4413249189/jobs/7733542410

pkg/meta/base_test.go-3-4: score:0.00 failed:0, passed:0, compile error:0, out of coverage:194, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4413249189/jobs/7733542160

pkg/meta/tkv_test.go-2-4: score:0.00 failed:0, passed:0, compile error:0, out of coverage:346, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4413249189/jobs/7733542695

pkg/meta/tkv_test.go-4-4: score:0.00 failed:0, passed:0, compile error:0, out of coverage:344, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4413249189/jobs/7733542885

pkg/meta/base_test.go-4-4: score:0.00 failed:0, passed:0, compile error:0, out of coverage:191, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4413249189/jobs/7733542261

pkg/meta/tkv_test.go-3-4: score:0.20 failed:4, passed:1, compile error:1, out of coverage:340, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4413249189/jobs/7733542800

pkg/meta/tkv_test.go-1-4: score:0.07 failed:13, passed:1, compile error:0, out of coverage:332, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4413249189/jobs/7733542574

Usage: https://github.com/juicedata/juicefs/blob/main/.github/scripts/mutate/how_to_use_mutate_test.md

Signed-off-by: xixi <[email protected]>
@github-actions
Copy link

Mutate Test Report
pkg/meta/base_test.go-2-4: score:0.00 failed:0, passed:0, compile error:0, out of coverage:191, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4413316323/jobs/7733677099

pkg/meta/base_test.go-1-4: score:0.00 failed:1, passed:0, compile error:1, out of coverage:188, skip by comment:0, others:1
Job detail: https://github.com/juicedata/juicefs/actions/runs/4413316323/jobs/7733676946

pkg/meta/base_test.go-3-4: score:0.00 failed:0, passed:0, compile error:0, out of coverage:191, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4413316323/jobs/7733677213

pkg/meta/tkv_fdb_test.go-1-1: score:0.00 failed:0, passed:0, compile error:0, out of coverage:0, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4413316323/jobs/7733677461

pkg/meta/base_test.go-4-4: score:0.00 failed:0, passed:0, compile error:0, out of coverage:187, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4413316323/jobs/7733677342

pkg/meta/tkv_test.go-2-4: score:0.00 failed:0, passed:0, compile error:0, out of coverage:346, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4413316323/jobs/7733677670

pkg/meta/tkv_test.go-4-4: score:0.00 failed:0, passed:0, compile error:0, out of coverage:344, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4413316323/jobs/7733677879

pkg/meta/tkv_test.go-3-4: score:0.20 failed:4, passed:1, compile error:1, out of coverage:340, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4413316323/jobs/7733677782

pkg/meta/tkv_test.go-1-4: score:0.07 failed:13, passed:1, compile error:0, out of coverage:332, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4413316323/jobs/7733677569

Usage: https://github.com/juicedata/juicefs/blob/main/.github/scripts/mutate/how_to_use_mutate_test.md

Signed-off-by: xixi <[email protected]>
@github-actions
Copy link

Mutate Test Report
pkg/meta/tkv_fdb_test.go-1-1: score:0.00 failed:0, passed:0, compile error:0, out of coverage:0, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4413597350/jobs/7734312121

pkg/meta/base_test.go-4-4: score:0.00 failed:0, passed:0, compile error:0, out of coverage:187, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4413597350/jobs/7734311970

pkg/meta/base_test.go-2-4: score:0.00 failed:0, passed:0, compile error:0, out of coverage:191, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4413597350/jobs/7734311717

pkg/meta/base_test.go-3-4: score:0.00 failed:0, passed:0, compile error:0, out of coverage:191, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4413597350/jobs/7734311845

pkg/meta/base_test.go-1-4: score:0.00 failed:1, passed:0, compile error:1, out of coverage:188, skip by comment:0, others:1
Job detail: https://github.com/juicedata/juicefs/actions/runs/4413597350/jobs/7734311458

pkg/meta/tkv_test.go-2-4: score:0.00 failed:0, passed:0, compile error:0, out of coverage:346, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4413597350/jobs/7734312372

pkg/meta/tkv_test.go-3-4: score:0.20 failed:4, passed:1, compile error:1, out of coverage:340, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4413597350/jobs/7734312492

pkg/meta/tkv_test.go-4-4: score:0.00 failed:0, passed:0, compile error:0, out of coverage:344, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4413597350/jobs/7734312619

pkg/meta/tkv_test.go-1-4: score:0.07 failed:13, passed:1, compile error:0, out of coverage:332, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4413597350/jobs/7734312250

Usage: https://github.com/juicedata/juicefs/blob/main/.github/scripts/mutate/how_to_use_mutate_test.md

Hexilee added 4 commits March 15, 2023 00:35
Signed-off-by: xixi <[email protected]>
Signed-off-by: xixi <[email protected]>
Signed-off-by: xixi <[email protected]>
@github-actions
Copy link

Mutate Test Report
pkg/meta/tkv_fdb_test.go-1-1: score:0.00 failed:0, passed:0, compile error:0, out of coverage:0, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4425281095/jobs/7760202657

pkg/meta/base_test.go-2-4: score:0.00 failed:0, passed:0, compile error:0, out of coverage:193, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4425281095/jobs/7760202109

pkg/meta/base_test.go-4-4: score:0.00 failed:0, passed:0, compile error:0, out of coverage:192, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4425281095/jobs/7760202439

pkg/meta/base_test.go-3-4: score:0.00 failed:3, passed:0, compile error:0, out of coverage:190, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4425281095/jobs/7760202277

pkg/meta/tkv_test.go-4-4: score:0.00 failed:0, passed:0, compile error:0, out of coverage:344, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4425281095/jobs/7760203567

pkg/meta/tkv_test.go-2-4: score:0.00 failed:0, passed:0, compile error:0, out of coverage:346, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4425281095/jobs/7760203206

pkg/meta/base_test.go-1-4: score:0.00 failed:0, passed:0, compile error:1, out of coverage:191, skip by comment:0, others:1
Job detail: https://github.com/juicedata/juicefs/actions/runs/4425281095/jobs/7760201915

pkg/meta/tkv_test.go-3-4: score:0.12 failed:7, passed:1, compile error:1, out of coverage:337, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4425281095/jobs/7760203426

pkg/meta/tkv_test.go-1-4: score:0.07 failed:14, passed:1, compile error:0, out of coverage:331, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4425281095/jobs/7760202868

Usage: https://github.com/juicedata/juicefs/blob/main/.github/scripts/mutate/how_to_use_mutate_test.md

Hexilee added 2 commits March 15, 2023 18:38
Signed-off-by: xixi <[email protected]>
Signed-off-by: xixi <[email protected]>
@github-actions
Copy link

Mutate Test Report
pkg/meta/base_test.go-1-4: score:0.37 failed:85, passed:49, compile error:35, out of coverage:25, skip by comment:0, others:1
Job detail: https://github.com/juicedata/juicefs/actions/runs/4477713288/jobs/7869664293

pkg/meta/tkv_test.go-1-4: score:0.51 failed:118, passed:125, compile error:47, out of coverage:67, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4477713288/jobs/7869665325

pkg/meta/base_test.go-2-4: score:0.23 failed:122, passed:37, compile error:19, out of coverage:17, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4477713288/jobs/7869664672

pkg/meta/tkv_test.go-4-4: score:0.48 failed:112, passed:104, compile error:13, out of coverage:124, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4477713288/jobs/7869665935

pkg/meta/tkv_test.go-2-4: score:0.27 failed:149, passed:55, compile error:9, out of coverage:144, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4477713288/jobs/7869665503

pkg/meta/tkv_test.go-3-4: score:0.38 failed:180, passed:109, compile error:20, out of coverage:48, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4477713288/jobs/7869665719

pkg/meta/base_test.go-4-4: score:0.54 failed:77, passed:89, compile error:16, out of coverage:9, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4477713288/jobs/7869665134

pkg/meta/base_test.go-3-4: score:0.39 failed:107, passed:68, compile error:11, out of coverage:9, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4477713288/jobs/7869664918

Usage: https://github.com/juicedata/juicefs/blob/main/.github/scripts/mutate/how_to_use_mutate_test.md

@SandyXSD SandyXSD changed the title implement directory quota cmd & meta: add support for directory quota Mar 22, 2023
@SandyXSD SandyXSD requested a review from davies March 22, 2023 10:08
@github-actions
Copy link

Mutate Test Report
pkg/meta/base_test.go-1-4: score:0.36 failed:86, passed:49, compile error:36, out of coverage:23, skip by comment:0, others:1
Job detail: https://github.com/juicedata/juicefs/actions/runs/4488218498/jobs/7892588032

pkg/meta/base_test.go-2-4: score:0.23 failed:122, passed:37, compile error:20, out of coverage:16, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4488218498/jobs/7892588209

pkg/meta/base_test.go-4-4: score:0.54 failed:77, passed:89, compile error:15, out of coverage:10, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4488218498/jobs/7892588617

pkg/meta/base_test.go-3-4: score:0.39 failed:106, passed:69, compile error:11, out of coverage:9, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4488218498/jobs/7892588457

Usage: https://github.com/juicedata/juicefs/blob/main/.github/scripts/mutate/how_to_use_mutate_test.md

@github-actions
Copy link

Mutate Test Report
pkg/meta/base_test.go-1-4: score:0.36 failed:86, passed:49, compile error:36, out of coverage:23, skip by comment:0, others:1
Job detail: https://github.com/juicedata/juicefs/actions/runs/4488412816/jobs/7893003343

pkg/meta/base_test.go-2-4: score:0.23 failed:122, passed:37, compile error:20, out of coverage:16, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4488412816/jobs/7893003512

pkg/meta/base_test.go-4-4: score:0.54 failed:77, passed:89, compile error:15, out of coverage:10, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4488412816/jobs/7893003769

pkg/meta/base_test.go-3-4: score:0.39 failed:107, passed:68, compile error:11, out of coverage:9, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4488412816/jobs/7893003647

Usage: https://github.com/juicedata/juicefs/blob/main/.github/scripts/mutate/how_to_use_mutate_test.md

@SandyXSD SandyXSD requested a review from Hexilee March 23, 2023 04:50
Copy link
Contributor

@Hexilee Hexilee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

pkg/meta/redis.go Outdated Show resolved Hide resolved
@github-actions
Copy link

Mutate Test Report
pkg/meta/base_test.go-1-4: score:0.35 failed:90, passed:49, compile error:35, out of coverage:20, skip by comment:0, others:1
Job detail: https://github.com/juicedata/juicefs/actions/runs/4496996410/jobs/7912201284

pkg/meta/base_test.go-2-4: score:0.24 failed:117, passed:37, compile error:20, out of coverage:21, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4496996410/jobs/7912201377

pkg/meta/base_test.go-4-4: score:0.53 failed:78, passed:89, compile error:16, out of coverage:8, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4496996410/jobs/7912201537

pkg/meta/base_test.go-3-4: score:0.40 failed:104, passed:68, compile error:10, out of coverage:13, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4496996410/jobs/7912201443

Usage: https://github.com/juicedata/juicefs/blob/main/.github/scripts/mutate/how_to_use_mutate_test.md

@davies davies merged commit fb19905 into main Mar 23, 2023
@davies davies deleted the wip-quota branch March 23, 2023 06:59
@github-actions
Copy link

Mutate Test Report
pkg/meta/base_test.go-1-4: score:0.37 failed:82, passed:49, compile error:33, out of coverage:30, skip by comment:0, others:1
Job detail: https://github.com/juicedata/juicefs/actions/runs/4497439074/jobs/7913047696

pkg/meta/base_test.go-2-4: score:0.25 failed:114, passed:37, compile error:21, out of coverage:23, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4497439074/jobs/7913047796

pkg/meta/base_test.go-4-4: score:0.54 failed:78, passed:90, compile error:15, out of coverage:8, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4497439074/jobs/7913047963

pkg/meta/base_test.go-3-4: score:0.41 failed:101, passed:69, compile error:10, out of coverage:15, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4497439074/jobs/7913047885

Usage: https://github.com/juicedata/juicefs/blob/main/.github/scripts/mutate/how_to_use_mutate_test.md

@github-actions
Copy link

Mutate Test Report
pkg/meta/base_test.go-1-4: score:0.37 failed:82, passed:49, compile error:33, out of coverage:30, skip by comment:0, others:1
Job detail: https://github.com/juicedata/juicefs/actions/runs/4497456183/jobs/7913077509

pkg/meta/base_test.go-2-4: score:0.25 failed:114, passed:37, compile error:21, out of coverage:23, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4497456183/jobs/7913077597

pkg/meta/base_test.go-4-4: score:0.54 failed:78, passed:90, compile error:15, out of coverage:8, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4497456183/jobs/7913077785

pkg/meta/base_test.go-3-4: score:0.41 failed:101, passed:69, compile error:10, out of coverage:15, skip by comment:0, others:0
Job detail: https://github.com/juicedata/juicefs/actions/runs/4497456183/jobs/7913077721

Usage: https://github.com/juicedata/juicefs/blob/main/.github/scripts/mutate/how_to_use_mutate_test.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants