All of lore.kernel.org
 help / color / mirror / Atom feed
* fstrim and subvolumes.
@ 2015-05-06 21:36 Christian
  2015-05-06 21:46 ` Timofey Titovets
  0 siblings, 1 reply; 2+ messages in thread
From: Christian @ 2015-05-06 21:36 UTC (permalink / raw)
  To: linux-btrfs

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



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: fstrim and subvolumes.
  2015-05-06 21:36 fstrim and subvolumes Christian
@ 2015-05-06 21:46 ` Timofey Titovets
  0 siblings, 0 replies; 2+ messages in thread
From: Timofey Titovets @ 2015-05-06 21:46 UTC (permalink / raw)
  To: Christian; +Cc: linux-btrfs

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 <cdysthe@gmail.com>:
> 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 majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



-- 
Have a nice day,
Timofey.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-05-06 21:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-06 21:36 fstrim and subvolumes Christian
2015-05-06 21:46 ` Timofey Titovets

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.