Re: newfs TRIM flag device support

Mark Millard <[email protected]>
Newsgroups gmane.os.freebsd.devel.arm
Message-ID <[email protected]>
On Feb 17, 2024, at 08:44, Mike Karels <[email protected]> wrote:

> On 17 Feb 2024, at 10:21, Ordinary Bit wrote:
> 
>> On Saturday, 17 February 2024 at 23:20, Mark Millard <[email protected]> wrote:
>> 
>>> On Feb 17, 2024, at 02:39, Ordinary Bit [email protected] wrote:
>>> . . . 
>>>> 
>>>> root@sd-ultra:~ # gpart show -p
>>>> => 63 124735425 mmcsd0 MBR (59G)
>>>> 63 1985 - free - (993K)
>>>> 2048 102400 mmcsd0s1 fat32lba [active] (50M)
>>>> 104448 10381312 mmcsd0s2 freebsd (5.0G)
>>>> 10485760 16777216 mmcsd0s3 freebsd (8.0G)
>>> 
>>> 
>>> An oddity just above is that mmcsd0s3 is not set to the
>>> type freebsd-ufs . But the oddity does not mess up the
>>> testing you were doing.
>>> 
>> 
>> Let me test this one with freebsd-ufs type because you're right it's only freebsd.
> 
> freebsd-ufs is a GPT type; this is MBR.  The ufs filesystem is presumably mmcsd0s3a.
> If the filesystem gets mounted, the partitioning is OK.
> 
> Mike
> 
>>>> 27262976 97472512 - free - (46G)
>>>> 
>>>> => 0 10381312 mmcsd0s2 BSD (5.0G)
>>>> 0 128 - free - (64K)
>>>> 128 10381184 mmcsd0s2a freebsd-ufs (4.9G)
>>>> . . .
> 

My splitting of the gpart output at the line I was interested in
may have left some confusion. So I'll quote the original full
output. I was not very explicit about the details of the oddities
involved before but will be so below.

QUOTE
root@sd-ultra:~ # gpart show -p
=>       63  124735425    mmcsd0  MBR  (59G)
        63       1985            - free -  (993K)
      2048     102400  mmcsd0s1  fat32lba  [active]  (50M)
    104448   10381312  mmcsd0s2  freebsd  (5.0G)
  10485760   16777216  mmcsd0s3  freebsd  (8.0G)
  27262976   97472512            - free -  (46G)

=>       0  10381312   mmcsd0s2  BSD  (5.0G)
        0       128             - free -  (64K)
      128  10381184  mmcsd0s2a  freebsd-ufs  (4.9G)
END QUOTE

First note that mmcsd0s2a says freebsd-ufs (but is
inside a BSD). That is what I consider normal for MBR
partitions that contain UFS file systems.

Next note that there was no "mmcsd0s3  BSD" shown.
Nor was there a "mmcsd0s3a  freebsd-ufs" shown.
"mmcsd0s3  freebsd" shows no evidence of any MBR/BSD
substructure. (But it was mountable as a UFS file
system after the newfs that was done on mmcsd0s3 .)

None of this messed up the testing that was being
done.

===
Mark Millard
marklmi at yahoo.com
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.