Fix/improve the btrfs_resize function
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 25/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- c
- Ambito
- operating-systems
Direzione di ricerca
Start from the bd_btrfs_resize() function, which the issue names as the place to add a device parameter. Read how it currently calls the btrfs resize command, and check how the btrfs filesystem resize DEV_ID:SIZE form works. Done means a caller can target one device, and a call without a device spreads the requested total size across the file system's devices. The issue has no comments or linked pull request, so ask the maintainers about the intended API before you write code.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
In order to resize a btrfs file system one needs to specify sizes of space that should be used on devices used by the btrfs file system. Simply calling btrfs filesystem resize SIZE MNT_POINT only resizes the first device not the whole file system. btrfs filesystem resize DEV_ID:SIZE MNT_POINT resizes a particular device.
Thus we need to add a parameter to bd_btrfs_resize() that will allow callers to specify a device and if none is specified, we need to calculate how much space we need to take from devices used by the file system to get the given total size (as one would expect from such function).
- Lingua principale
- C
- Stelle
- 137
- Fork
- 64
- Merge medio
- 1g 5h
- PR unite (30g)
- 3
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di storaged-project/libblockdev
-
fails to build with libnvme3 (nvme-cli 3.0)Forse già presa @tbzatek l’ha presa 39 giorni fa. Aperta
storaged-project/libblockdev#1211 · 4 commenti · 1 assegnatario ·
-
RFE
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
storaged-project/libblockdev#1093 · 3 commenti ·
-
Difficoltà 4/5 Più di una settimana Idoneità per principianti 18/100
storaged-project/libblockdev#1067 ·
-
Difficoltà 3/5 Mezza giornata Idoneità per principianti 40/100
storaged-project/libblockdev#1060 · 1 commento ·
-
enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 12/100
storaged-project/libblockdev#977 · 1 commento ·
Tutte le issue di storaged-project/libblockdev
Issue simili
-
开发板墙缺少 ESP32_S31_MOSAICOAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
espressif/esp-vision#16 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
libsdl-org/SDL#16577 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
I maintainer di solito rispondono entro 1 giorno
-
halt_error adds a trailing newline for non-string input, contrary to the manualForse già presa @Huang-404-Q l’ha presa oggi. Aperta
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
MerginMaps/geodiff#272 ·