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

capacityを小さめにNVMを作った際のエラーを親切にする #2

Open
sile opened this issue Oct 17, 2018 · 0 comments
Open

Comments

@sile
Copy link
Member

sile commented Oct 17, 2018

例えば

let dir = track_io!(TempDir::new("cannyls_test"))?;
let nvm = track!(FileNvm::create(
    dir.path().join("test.lusf"),
    Alignment::min().ceil_align(2048)
))?;
let mut storage = track!(StorageBuilder::new().journal_region_ratio(0.5).create(nvm))?;

など書いて

Error: Other (cause; failed to write whole buffer)
HISTORY:
  [0] at src/nvm/mod.rs:96
  [1] at src/storage/builder.rs:134
  [2] at src/storage/mod.rs:650

と出てもどうして良いか分からない。
(capacityが足りないことに察しがついたとしても、何故足りないのかエスパーするのが難しい)

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

No branches or pull requests

1 participant