Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 297756
b: refs/heads/master
c: 83619ea
h: refs/heads/master
v: v3
  • Loading branch information
Jamie Lentin authored and Grant Likely committed Mar 28, 2012
1 parent fa07fa5 commit 53bcd88
Show file tree
Hide file tree
Showing 2,702 changed files with 27,819 additions and 40,477 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: eb05df9e7e793f3134dbb574c7ccc05f7932bc59
refs/heads/master: 83619ea08e9abe0f5ebcfc569a829d1105a1685e
16 changes: 0 additions & 16 deletions trunk/Documentation/ABI/testing/debugfs-olpc

This file was deleted.

25 changes: 0 additions & 25 deletions trunk/Documentation/ABI/testing/sysfs-block-dm

This file was deleted.

18 changes: 0 additions & 18 deletions trunk/Documentation/ABI/testing/sysfs-driver-samsung-laptop
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,3 @@ Description: Some Samsung laptops have different "performance levels"
Specifically, not all support the "overclock" option,
and it's still unknown if this value even changes
anything, other than making the user feel a bit better.

What: /sys/devices/platform/samsung/battery_life_extender
Date: December 1, 2011
KernelVersion: 3.3
Contact: Corentin Chary <corentin.chary@gmail.com>
Description: Max battery charge level can be modified, battery cycle
life can be extended by reducing the max battery charge
level.
0 means normal battery mode (100% charge)
1 means battery life extender mode (80% charge)

What: /sys/devices/platform/samsung/usb_charge
Date: December 1, 2011
KernelVersion: 3.3
Contact: Corentin Chary <corentin.chary@gmail.com>
Description: Use your USB ports to charge devices, even
when your laptop is powered off.
1 means enabled, 0 means disabled.
2 changes: 1 addition & 1 deletion trunk/Documentation/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
obj-m := DocBook/ accounting/ auxdisplay/ connector/ \
filesystems/ filesystems/configfs/ ia64/ laptops/ networking/ \
pcmcia/ spi/ timers/ watchdog/src/
pcmcia/ spi/ timers/ vm/ watchdog/src/
65 changes: 15 additions & 50 deletions trunk/Documentation/device-mapper/thin-provisioning.txt
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,10 @@ less sharing than average you'll need a larger-than-average metadata device.

As a guide, we suggest you calculate the number of bytes to use in the
metadata device as 48 * $data_dev_size / $data_block_size but round it up
to 2MB if the answer is smaller. If you're creating large numbers of
snapshots which are recording large amounts of change, you may find you
need to increase this.
to 2MB if the answer is smaller. The largest size supported is 16GB.

The largest size supported is 16GB: If the device is larger,
a warning will be issued and the excess space will not be used.
If you're creating large numbers of snapshots which are recording large
amounts of change, you may need find you need to increase this.

Reloading a pool table
----------------------
Expand Down Expand Up @@ -169,38 +167,6 @@ ii) Using an internal snapshot.

dmsetup create snap --table "0 2097152 thin /dev/mapper/pool 1"

External snapshots
------------------

You can use an external _read only_ device as an origin for a
thinly-provisioned volume. Any read to an unprovisioned area of the
thin device will be passed through to the origin. Writes trigger
the allocation of new blocks as usual.

One use case for this is VM hosts that want to run guests on
thinly-provisioned volumes but have the base image on another device
(possibly shared between many VMs).

You must not write to the origin device if you use this technique!
Of course, you may write to the thin device and take internal snapshots
of the thin volume.

i) Creating a snapshot of an external device

This is the same as creating a thin device.
You don't mention the origin at this stage.

dmsetup message /dev/mapper/pool 0 "create_thin 0"

ii) Using a snapshot of an external device.

Append an extra parameter to the thin target specifying the origin:

dmsetup create snap --table "0 2097152 thin /dev/mapper/pool 0 /dev/image"

N.B. All descendants (internal snapshots) of this snapshot require the
same extra origin parameter.

Deactivation
------------

Expand All @@ -223,13 +189,7 @@ i) Constructor
<low water mark (blocks)> [<number of feature args> [<arg>]*]

Optional feature arguments:

skip_block_zeroing: Skip the zeroing of newly-provisioned blocks.

ignore_discard: Disable discard support.

no_discard_passdown: Don't pass discards down to the underlying
data device, but just remove the mapping.
- 'skip_block_zeroing': skips the zeroing of newly-provisioned blocks.

Data block size must be between 64KB (128 sectors) and 1GB
(2097152 sectors) inclusive.
Expand Down Expand Up @@ -277,6 +237,16 @@ iii) Messages

Deletes a thin device. Irreversible.

trim <dev id> <new size in sectors>

Delete mappings from the end of a thin device. Irreversible.
You might want to use this if you're reducing the size of
your thinly-provisioned device. In many cases, due to the
sharing of blocks between devices, it is not possible to
determine in advance how much space 'trim' will release. (In
future a userspace tool might be able to perform this
calculation.)

set_transaction_id <current id> <new id>

Userland volume managers, such as LVM, need a way to
Expand All @@ -292,7 +262,7 @@ iii) Messages

i) Constructor

thin <pool dev> <dev id> [<external origin dev>]
thin <pool dev> <dev id>

pool dev:
the thin-pool device, e.g. /dev/mapper/my_pool or 253:0
Expand All @@ -301,11 +271,6 @@ i) Constructor
the internal device identifier of the device to be
activated.

external origin dev:
an optional block device outside the pool to be treated as a
read-only snapshot origin: reads to unprovisioned areas of the
thin target will be mapped to this device.

The pool doesn't store any size against the thin devices. If you
load a thin target that is smaller than you've been using previously,
then you'll have no access to blocks mapped beyond the end. If you
Expand Down
194 changes: 0 additions & 194 deletions trunk/Documentation/device-mapper/verity.txt

This file was deleted.

Loading

0 comments on commit 53bcd88

Please sign in to comment.