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. > _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel