oxidecomputer / oxidecomputer/omicron

Should 400 if trying to set a block size on a local disk

Open Beginner friendly
#10,485 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

api local storage
Dominant language
Rust
Stars
572
Forks
97
Avg merge
2d 12h
Merged PRs (30d)
96

Description

Local disks have a hard-coded block size, so passing block_size at create time does nothing. Instead of ignoring it, we should error out at create time if a block size other than 4096 is passed in.

https://github.com/oxidecomputer/omicron/blob/985304a607b16191bdc35e0ea87fa522d925b514/nexus/src/app/sagas/disk_create.rs#L327-L329

https://github.com/oxidecomputer/omicron/blob/985304a607b16191bdc35e0ea87fa522d925b514/nexus/src/app/disk.rs#L200-L202

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the linked logic in nexus/src/app/sagas/disk_create.rs and nexus/src/app/disk.rs, focusing on how block_size is handled for local disks. Trace the create-time request path and identify the existing validation or error response conventions. Done means a local-disk request with any block_size other than 4096 returns HTTP 400 instead of being silently accepted.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
api, backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
78/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.