diff options
author | Joe Thornber <ejt@redhat.com> | 2012-03-28 13:41:24 -0400 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2012-03-28 13:41:24 -0400 |
commit | fe878f34df89ad4af758f40bbec829807dc93a00 (patch) | |
tree | eaa377c640fd595391491725ab477f29062374b1 | |
parent | 035220b33d6865d81d5433600def53373cca7127 (diff) |
dm thin: correct comments
Remove documentation for unimplemented 'trim' message.
I'd planned a 'trim' target message for shrinking thin devices, but
this is better handled via the discard ioctl.
Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
-rw-r--r-- | Documentation/device-mapper/thin-provisioning.txt | 10 | ||||
-rw-r--r-- | drivers/md/dm-thin.c | 2 |
2 files changed, 1 insertions, 11 deletions
diff --git a/Documentation/device-mapper/thin-provisioning.txt b/Documentation/device-mapper/thin-provisioning.txt index 1ff044d87ca..da50347c005 100644 --- a/Documentation/device-mapper/thin-provisioning.txt +++ b/Documentation/device-mapper/thin-provisioning.txt | |||
@@ -237,16 +237,6 @@ iii) Messages | |||
237 | 237 | ||
238 | Deletes a thin device. Irreversible. | 238 | Deletes a thin device. Irreversible. |
239 | 239 | ||
240 | trim <dev id> <new size in sectors> | ||
241 | |||
242 | Delete mappings from the end of a thin device. Irreversible. | ||
243 | You might want to use this if you're reducing the size of | ||
244 | your thinly-provisioned device. In many cases, due to the | ||
245 | sharing of blocks between devices, it is not possible to | ||
246 | determine in advance how much space 'trim' will release. (In | ||
247 | future a userspace tool might be able to perform this | ||
248 | calculation.) | ||
249 | |||
250 | set_transaction_id <current id> <new id> | 240 | set_transaction_id <current id> <new id> |
251 | 241 | ||
252 | Userland volume managers, such as LVM, need a way to | 242 | Userland volume managers, such as LVM, need a way to |
diff --git a/drivers/md/dm-thin.c b/drivers/md/dm-thin.c index da2f0217df6..1791134cf47 100644 --- a/drivers/md/dm-thin.c +++ b/drivers/md/dm-thin.c | |||
@@ -72,7 +72,7 @@ | |||
72 | * missed out if the io covers the block. (schedule_copy). | 72 | * missed out if the io covers the block. (schedule_copy). |
73 | * | 73 | * |
74 | * iv) insert the new mapping into the origin's btree | 74 | * iv) insert the new mapping into the origin's btree |
75 | * (process_prepared_mappings). This act of inserting breaks some | 75 | * (process_prepared_mapping). This act of inserting breaks some |
76 | * sharing of btree nodes between the two devices. Breaking sharing only | 76 | * sharing of btree nodes between the two devices. Breaking sharing only |
77 | * effects the btree of that specific device. Btrees for the other | 77 | * effects the btree of that specific device. Btrees for the other |
78 | * devices that share the block never change. The btree for the origin | 78 | * devices that share the block never change. The btree for the origin |