Skip to content

Commit

Permalink
libtcmu: fix max unmap definition
Browse files Browse the repository at this point in the history
The comment says we wanted to limit the max UNMAP size to 32M but we
were setting the number of bytes instead of blocks, so we were setting
it to 16 GB.

Signed-off-by: Mike Christie <mchristi@redhat.com>
  • Loading branch information
Mike Christie committed Sep 6, 2018
1 parent 98175d1 commit 6ac4a83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libtcmu_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ enum {
#define CFGFS_MOD_PARAM CFGFS_TARGET_MOD"/parameters"

/* Temporarily limit this to 32M */
#define VPD_MAX_UNMAP_LBA_COUNT (32 * 1024 * 1024)
#define VPD_MAX_UNMAP_LBA_COUNT 65536
#define VPD_MAX_UNMAP_BLOCK_DESC_COUNT 0x04
/* Temporarily limit this is 0x1 */
#define MAX_CAW_LENGTH 0x01
Expand Down

0 comments on commit 6ac4a83

Please sign in to comment.