Commit def75b6
committed
Merge remote-tracking branch 'origin/pr/835'
* origin/pr/835:
storage/zfs: support shrinking volumes
storage/lvm,file: support shrinking volumes
Pull request description:
Similar in purpose to #477, #478, #479 by @a-barinov in 2022, but with the shrinking check happening on the frontend side as [suggested](#477 (comment)) by @marmarek. The frontend already had such a check but only in the `qvm-volume` tool; QubesOS/qubes-core-admin-client#475 centralizes this check to `qubesadmin.storage.Volume.resize()` so that any other callers are protected as well. (Qube Manager's qube Settings dialog / `qubes-vm-settings` also has its own logic that avoids calling `resize()` if it would shrink.)
Closes #4794 files changed
Lines changed: 17 additions & 53 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | 365 | | |
374 | 366 | | |
375 | 367 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
719 | 719 | | |
720 | 720 | | |
721 | 721 | | |
722 | | - | |
723 | | - | |
724 | | - | |
725 | | - | |
726 | | - | |
727 | | - | |
728 | | - | |
729 | | - | |
730 | 722 | | |
731 | 723 | | |
732 | 724 | | |
733 | 725 | | |
734 | | - | |
| 726 | + | |
735 | 727 | | |
736 | 728 | | |
737 | 729 | | |
738 | 730 | | |
739 | | - | |
| 731 | + | |
740 | 732 | | |
741 | 733 | | |
742 | | - | |
| 734 | + | |
743 | 735 | | |
744 | 736 | | |
745 | 737 | | |
| |||
909 | 901 | | |
910 | 902 | | |
911 | 903 | | |
912 | | - | |
913 | | - | |
914 | | - | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
915 | 907 | | |
916 | 908 | | |
917 | 909 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1412 | 1412 | | |
1413 | 1413 | | |
1414 | 1414 | | |
1415 | | - | |
| 1415 | + | |
1416 | 1416 | | |
1417 | 1417 | | |
1418 | | - | |
1419 | | - | |
1420 | 1418 | | |
1421 | 1419 | | |
1422 | 1420 | | |
| |||
2681 | 2679 | | |
2682 | 2680 | | |
2683 | 2681 | | |
2684 | | - | |
2685 | | - | |
2686 | | - | |
2687 | | - | |
2688 | | - | |
2689 | | - | |
2690 | | - | |
2691 | | - | |
2692 | | - | |
2693 | | - | |
2694 | | - | |
2695 | | - | |
2696 | | - | |
2697 | | - | |
2698 | | - | |
2699 | | - | |
2700 | | - | |
2701 | | - | |
2702 | | - | |
| 2682 | + | |
| 2683 | + | |
2703 | 2684 | | |
2704 | 2685 | | |
2705 | 2686 | | |
2706 | 2687 | | |
2707 | | - | |
2708 | | - | |
2709 | | - | |
2710 | | - | |
2711 | 2688 | | |
2712 | 2689 | | |
2713 | 2690 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
418 | 418 | | |
419 | 419 | | |
420 | 420 | | |
421 | | - | |
| 421 | + | |
422 | 422 | | |
423 | 423 | | |
424 | 424 | | |
| |||
431 | 431 | | |
432 | 432 | | |
433 | 433 | | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
438 | 441 | | |
439 | 442 | | |
440 | 443 | | |
| |||
0 commit comments