fstrim and subvolumes.
Hi,
I use a script to run scheduled fstrims on my SSD. I have a small /boot partition ext4 and a large btrfs partition / with /home as a subvolume of /
My question is simple if I run "fstrim /" will /home be trimmed as well or will i have to run "fstrim /home" also to get the whole partition trimmed?
Signature · 1 line
//Christian
when you run fstrim, you give path to file system, fstrim talk with file system and filesystem call trim for whole free space on it filesystem.
As you say above, home and root, is a subvolume on one big btrfs filesystem, then if you call fstrim on any path in fs, you will trim whole free space on this fs.
*Enough call it once for '/', sorry for long and ugly answer
2015-05-07 0:36 GMT+03:00 Christian <[email protected]>:
Quoted 16 lines
Hi,
I use a script to run scheduled fstrims on my SSD. I have a small /boot partition ext4 and a large btrfs partition / with /home as a subvolume of /
My question is simple if I run "fstrim /" will /home be trimmed as well or will i have to run "fstrim /home" also to get the whole partition trimmed?
--
//Christian--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 2 lines
Have a nice day, Timofey.