grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: btrfs trim erases bootloader area


From: Andrei Borzenkov
Subject: Re: btrfs trim erases bootloader area
Date: Fri, 8 Jan 2016 09:36:24 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0

08.01.2016 04:44, Christoph Anton Mitterer пишет:
> Hey.
> 
> Just a followup on this:
> GPT and some others (e.g MD RAID) store data in the end of the device.
> 
> It's clear that when the fs is made inside a partition, this shouldn't
> be seen (and thus TRIMmed) anyway... but can btrfs be installed e.g.
> directly on the device while that continues to hold the GPT (by btrfs
> simply always starting at some byte offset)?

If btrfs size includes metadata at the end of device - arguably it is
user error; it should not happen.

If user explicitly excluded metadata (mkfs.btrfs -b <size>) but btrfs
still attempts to trim beyond end of filesystem - this is obviously bug
and should not happen. I do not understand much of btrfs internals to
know if this is possible.

Note that corner case is when filesystem size is not multiple of trim
units size. Then incomplete chunks(s) at the beginning and end should
always be skipped.

> If so, then one may possibly need to extend that patch for the end of
> the device.
> 
> Cheers,
> Chris.
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]