Merge lp:~stgraber/ubuntu/trusty/initramfs-tools-ubuntu-touch/enable-discard into lp:ubuntu/trusty/initramfs-tools-ubuntu-touch
Proposed by
Stéphane Graber
Status: | Merged |
---|---|
Approved by: | Oliver Grawert |
Approved revision: | 65 |
Merged at revision: | 65 |
Proposed branch: | lp:~stgraber/ubuntu/trusty/initramfs-tools-ubuntu-touch/enable-discard |
Merge into: | lp:ubuntu/trusty/initramfs-tools-ubuntu-touch |
Diff against target: |
26 lines (+7/-1) 2 files modified
debian/changelog (+6/-0) scripts/touch (+1/-1) |
To merge this branch: | bzr merge lp:~stgraber/ubuntu/trusty/initramfs-tools-ubuntu-touch/enable-discard |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Oliver Grawert | Approve | ||
Review via email: mp+198998@code.launchpad.net |
Description of the change
Adds discard (TRIM) support when mounting the main writable block device (userdata).
This has been confirmed to work (device still boots fine) on mako and grouper. The way the flag works in the kernel, it should be fine on any device, if the underlying block device doesn't support it, it'll simply be ignored.
I'm not setting this flag for any of the loop mounted partitions because those are typically read-only anyway (so nothing to TRIM) and support of TRIM on ext2 loop-mounted over ext4 isn't particularly clear.
To post a comment you must log in.
If you are sure it will just be ignored and not cause data loss or anything on MMCs that do not support it, then go ahead. Approved ...