Re: newfs TRIM flag device support

Ordinary Bit <[email protected]>
Newsgroups gmane.os.freebsd.devel.arm
Message-ID <DL-bGuTxmOC5O2N-3wa9mbkuJ6VMeRTrwiHT_eOaHeopBXr_JfbRiHKiiyncADaXrn8H575uLNIkdxjNV0Nogz3IJuVfE_T8jcU30voSkYI=@proton.me>
Hi!

On Friday, 16 February 2024 at 11:41, Mark Millard <[email protected]> wrote:

> [Only replying to lists I subscribe to.]
> 
> On Feb 15, 2024, at 19:19, Ordinary Bit [email protected] wrote:
> 
> > I'm reading the newfs manual https://man.freebsd.org/cgi/man.cgi?newfs(8) to be able to know about the TRIM flag. In the manual under -t parameter, it mentioned about "underlying device support", what exactly is this device?
> 
> 
> 2 contrasting examples:
> 
> 
> Example 0: Optane NVMe media (PCIe card or U.2, for example)
> 
> Optane has no need of TRIM and, so, never supports TRIM.
> 
> 
> Example 1: microsd card media usage
> 
> A microsd card in the normal type of microsd card slot on
> Small Board Computers (normally) supports TRIM. Take the
> same card and put it in a USB reader/writer and use it
> via USB on the same system: no TRIM is supported by
> FreeBSD over USB.
>

So you mean to say that if I have a Rasperry Pi 3 or 4 now and then have my FreeBSD installed in a microSD card (for example, SanDisk Extreme card) with UFS/FFS filesytem in it with TRIM enabled parameter then is it going to recognize it? How to verify?

> 
> FYI:
> 
> When the file system has TRIM enabled, FreeBSD put out a
> notice if TRIM will not actually be used in the actual
> context in use.
>

Ok, got it. How to check this as well?

BR,
orbit
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.