Does the kernel send the TRIM command when formatting a partition ?
I've read that for the kernel to send the TRIM command when you delete a file on an SSD you have to add the 'discard' option in /etc/fstab.
When you format a partition you delete all the files at the OS level since you create a new file system. However when you do so with a linux utility such as GParted the partition is unmounted therefore I suppose that all the options including 'discard' in /etc/fstab don't apply.
So I would like to know : does the kernel (which supports TRIM since version 2.6.33) send the TRIM command to the SSD controller when you format a partition with GParted ?
Thank you in advance for your help.