search for: string_units_10

Displaying 8 results from an estimated 8 matches for "string_units_10".

2015 Mar 13
0
[PATCH] sd, mmc, virtio_blk, string_helpers: fix block size units
...id virtblk_config_changed_work(struct work_struct *work) > capacity = (sector_t)-1; > } > > - size = capacity * queue_logical_block_size(q); > - string_get_size(size, STRING_UNITS_2, cap_str_2, sizeof(cap_str_2)); > - string_get_size(size, STRING_UNITS_10, cap_str_10, sizeof(cap_str_10)); > + string_get_size(capacity, queue_logical_block_size(q), > + STRING_UNITS_2, cap_str_2, sizeof(cap_str_2)); > + string_get_size(capacity, queue_logical_block_size(q), > + STRING_UNITS_10, cap_str...
2015 Mar 13
0
[PATCH] sd, mmc, virtio_blk, string_helpers: fix block size units
...id virtblk_config_changed_work(struct work_struct *work) > capacity = (sector_t)-1; > } > > - size = capacity * queue_logical_block_size(q); > - string_get_size(size, STRING_UNITS_2, cap_str_2, sizeof(cap_str_2)); > - string_get_size(size, STRING_UNITS_10, cap_str_10, sizeof(cap_str_10)); > + string_get_size(capacity, queue_logical_block_size(q), > + STRING_UNITS_2, cap_str_2, sizeof(cap_str_2)); > + string_get_size(capacity, queue_logical_block_size(q), > + STRING_UNITS_10, cap_str...
2017 Jul 26
2
[PATCH] virtio_blk: fix incorrect message when disk is resized
...cks = DIV_ROUND_UP_ULL(capacity, queue_logical_block_size(q) >> 9); + + string_get_size(nblocks, queue_logical_block_size(q), STRING_UNITS_2, cap_str_2, sizeof(cap_str_2)); - string_get_size(capacity, queue_logical_block_size(q), + string_get_size(nblocks, queue_logical_block_size(q), STRING_UNITS_10, cap_str_10, sizeof(cap_str_10)); dev_notice(&vdev->dev, - "new size: %llu %d-byte logical blocks (%s/%s)\n", - (unsigned long long)capacity, - queue_logical_block_size(q), - cap_str_10, cap_str_2); + "new size: %llu %d-byte logical blocks (%s/%s)\n",...
2017 Jul 26
2
[PATCH] virtio_blk: fix incorrect message when disk is resized
...cks = DIV_ROUND_UP_ULL(capacity, queue_logical_block_size(q) >> 9); + + string_get_size(nblocks, queue_logical_block_size(q), STRING_UNITS_2, cap_str_2, sizeof(cap_str_2)); - string_get_size(capacity, queue_logical_block_size(q), + string_get_size(nblocks, queue_logical_block_size(q), STRING_UNITS_10, cap_str_10, sizeof(cap_str_10)); dev_notice(&vdev->dev, - "new size: %llu %d-byte logical blocks (%s/%s)\n", - (unsigned long long)capacity, - queue_logical_block_size(q), - cap_str_10, cap_str_2); + "new size: %llu %d-byte logical blocks (%s/%s)\n",...
2018 Jan 03
1
[PATCH] virtio_blk: print capacity at probe time
...ev = vblk->vdev; struct request_queue *q = vblk->disk->queue; char cap_str_2[10], cap_str_10[10]; - char *envp[] = { "RESIZE=1", NULL }; unsigned long long nblocks; u64 capacity; @@ -402,13 +400,24 @@ static void virtblk_config_changed_work(struct work_struct *work) STRING_UNITS_10, cap_str_10, sizeof(cap_str_10)); dev_notice(&vdev->dev, - "new size: %llu %d-byte logical blocks (%s/%s)\n", + "[%s] %s%llu %d-byte logical blocks (%s/%s)\n", + vblk->disk->disk_name, + resize ? "new size: " : "", nbloc...
2017 Aug 04
0
[PATCH] virtio_blk: fix incorrect message when disk is resized
...y, queue_logical_block_size(q) >> 9); > + > + string_get_size(nblocks, queue_logical_block_size(q), > STRING_UNITS_2, cap_str_2, sizeof(cap_str_2)); > - string_get_size(capacity, queue_logical_block_size(q), > + string_get_size(nblocks, queue_logical_block_size(q), > STRING_UNITS_10, cap_str_10, sizeof(cap_str_10)); > > dev_notice(&vdev->dev, > - "new size: %llu %d-byte logical blocks (%s/%s)\n", > - (unsigned long long)capacity, > - queue_logical_block_size(q), > - cap_str_10, cap_str_2); > + "new size: %llu %d-by...
2011 Jan 27
1
[PATCH] virtio_blk: allow re-reading config space at runtime
..."Capacity %llu too large: truncating\n", > + (unsigned long long)capacity); > + capacity = (sector_t)-1; > + } > + > + size = capacity * queue_logical_block_size(q); > + string_get_size(size, STRING_UNITS_2, cap_str_2, sizeof(cap_str_2)); > + string_get_size(size, STRING_UNITS_10, cap_str_10, sizeof(cap_str_10)); > + > + dev_notice(&vdev->dev, > + "new size: %llu %d-byte logical blocks (%s/%s)\n", > + (unsigned long long)capacity, > + queue_logical_block_size(q), > + cap_str_10, cap_str_2); > + > + set_capacity(vblk->d...
2011 Jan 27
1
[PATCH] virtio_blk: allow re-reading config space at runtime
..."Capacity %llu too large: truncating\n", > + (unsigned long long)capacity); > + capacity = (sector_t)-1; > + } > + > + size = capacity * queue_logical_block_size(q); > + string_get_size(size, STRING_UNITS_2, cap_str_2, sizeof(cap_str_2)); > + string_get_size(size, STRING_UNITS_10, cap_str_10, sizeof(cap_str_10)); > + > + dev_notice(&vdev->dev, > + "new size: %llu %d-byte logical blocks (%s/%s)\n", > + (unsigned long long)capacity, > + queue_logical_block_size(q), > + cap_str_10, cap_str_2); > + > + set_capacity(vblk->d...