diff options
Diffstat (limited to 'drivers/md/dm-ioctl.c')
-rw-r--r-- | drivers/md/dm-ioctl.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/md/dm-ioctl.c b/drivers/md/dm-ioctl.c index a1a3e6df17b8..afd95986d099 100644 --- a/drivers/md/dm-ioctl.c +++ b/drivers/md/dm-ioctl.c | |||
@@ -1054,6 +1054,7 @@ static void retrieve_status(struct dm_table *table, | |||
1054 | char *outbuf, *outptr; | 1054 | char *outbuf, *outptr; |
1055 | status_type_t type; | 1055 | status_type_t type; |
1056 | size_t remaining, len, used = 0; | 1056 | size_t remaining, len, used = 0; |
1057 | unsigned status_flags = 0; | ||
1057 | 1058 | ||
1058 | outptr = outbuf = get_result_buffer(param, param_size, &len); | 1059 | outptr = outbuf = get_result_buffer(param, param_size, &len); |
1059 | 1060 | ||
@@ -1090,7 +1091,9 @@ static void retrieve_status(struct dm_table *table, | |||
1090 | 1091 | ||
1091 | /* Get the status/table string from the target driver */ | 1092 | /* Get the status/table string from the target driver */ |
1092 | if (ti->type->status) { | 1093 | if (ti->type->status) { |
1093 | if (ti->type->status(ti, type, outptr, remaining)) { | 1094 | if (param->flags & DM_NOFLUSH_FLAG) |
1095 | status_flags |= DM_STATUS_NOFLUSH_FLAG; | ||
1096 | if (ti->type->status(ti, type, status_flags, outptr, remaining)) { | ||
1094 | param->flags |= DM_BUFFER_FULL_FLAG; | 1097 | param->flags |= DM_BUFFER_FULL_FLAG; |
1095 | break; | 1098 | break; |
1096 | } | 1099 | } |