@@ -37,7 +37,7 @@ include::memdev-option.txt[]
-t::
--type=::
- Type of partition, 'pmem' or 'volatile', to modify.
+ Type of partition, 'pmem' or 'ram' (volatile), to modify.
Default: 'pmem'
-s::
@@ -65,7 +65,7 @@ OPT_BOOLEAN('f', "force", ¶m.force, \
#define SET_PARTITION_OPTIONS() \
OPT_STRING('t', "type", ¶m.type, "type", \
- "'pmem' or 'volatile' (Default: 'pmem')"), \
+ "'pmem' or 'ram' (volatile) (Default: 'pmem')"), \
OPT_STRING('s', "size", ¶m.size, "size", \
"size in bytes (Default: all available capacity)"), \
OPT_BOOLEAN('a', "align", ¶m.align, \
@@ -355,6 +355,8 @@ static int action_setpartition(struct cxl_memdev *memdev,
/* default */;
else if (strcmp(param.type, "volatile") == 0)
type = CXL_SETPART_VOLATILE;
+ else if (strcmp(param.type, "ram") == 0)
+ type = CXL_SETPART_VOLATILE;
else {
log_err(&ml, "invalid type '%s'\n", param.type);
return -EINVAL;