Repository navigation
Commit ff96128
committed
rbd: show the entire chain of parent images
Make /sys/bus/rbd/devices/<id>/parent show the entire chain of parent
images. While at it, kernel sprintf() doesn't return negative values,
casting to unsigned long long is no longer necessary and there is no
good reason to split into multiple sprintf() calls.
Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Reviewed-by: Alex Elder <elder@linaro.org>1 parent 08a0f24 commit ff96128
2 files changed
Lines changed: 25 additions & 35 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
98 | | - | |
| 97 | + | |
| 98 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3685 | 3685 | | |
3686 | 3686 | | |
3687 | 3687 | | |
3688 | | - | |
3689 | | - | |
3690 | | - | |
| 3688 | + | |
| 3689 | + | |
| 3690 | + | |
3691 | 3691 | | |
3692 | 3692 | | |
3693 | | - | |
3694 | | - | |
| 3693 | + | |
| 3694 | + | |
3695 | 3695 | | |
3696 | 3696 | | |
3697 | | - | |
3698 | | - | |
3699 | | - | |
| 3697 | + | |
3700 | 3698 | | |
3701 | | - | |
| 3699 | + | |
3702 | 3700 | | |
3703 | 3701 | | |
3704 | | - | |
3705 | | - | |
3706 | | - | |
3707 | | - | |
3708 | | - | |
3709 | | - | |
3710 | | - | |
3711 | | - | |
3712 | | - | |
3713 | | - | |
3714 | | - | |
3715 | | - | |
3716 | | - | |
3717 | | - | |
3718 | | - | |
3719 | | - | |
3720 | | - | |
3721 | | - | |
3722 | | - | |
3723 | | - | |
3724 | | - | |
3725 | | - | |
3726 | | - | |
3727 | | - | |
| 3702 | + | |
| 3703 | + | |
| 3704 | + | |
| 3705 | + | |
| 3706 | + | |
| 3707 | + | |
| 3708 | + | |
| 3709 | + | |
| 3710 | + | |
| 3711 | + | |
| 3712 | + | |
| 3713 | + | |
| 3714 | + | |
| 3715 | + | |
| 3716 | + | |
| 3717 | + | |
3728 | 3718 | | |
3729 | 3719 | | |
3730 | 3720 | | |
| |||
0 commit comments