FreeBSD Bugzilla – Attachment 226684 Details for
Bug 257409
sysutils/lsblk 3.5 seems to not show a modified label if the device is at /dev/da0 (zero)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
sh -x ~/Desktop/lsblk da0
sh -x lsblk.txt (text/plain), 5.71 KB, created by
Graham Perrin
on 2021-07-25 18:19:46 UTC
(
hide
)
Description:
sh -x ~/Desktop/lsblk da0
Filename:
MIME Type:
Creator:
Graham Perrin
Created:
2021-07-25 18:19:46 UTC
Size:
5.71 KB
patch
obsolete
>% sh -x ~/Desktop/lsblk da0 >+ PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/home/grahamperrin/bin:/home/grahamperrin/.local/bin:/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin >+ [ da0 '=' --version -o da0 '=' -version -o da0 '=' version ] >+ LEVEL_DEV=0 >+ LEVEL_PAR=0 >+ glabel status >+ sed 1d >+ grep -v gptid >+ GLABEL=' gpt/efiboot0 N/A ada0p1 > msdosfs/EFISYS N/A ada0p1 > gpt/gptboot0 N/A ada0p2 >iso9660/ONEPLUS%20DRIVERS N/A cd0 > gpt/cache-copperbowl N/A da0p1 > gpt/cache-transcend N/A da1p1 > gpt/Transcend N/A da2p1' >+ __list_block_devices >+ sysctl -n kern.disks >+ sed -r 's/[[:cntrl:]]\[[0-9]{1,3}m//g' >+ tr ' ' '\n' >+ sed 's|/dev/||g' >+ sort -u >+ sed '/^s*$/d' >+ ls -1 /dev/ada0 >+ ls -1 '/dev/ada[0-9][0-9]' >+ ls -1 '/dev/ada[0-9][0-9][0-9]' >+ ls -1 /dev/da0 /dev/da1 /dev/da2 >+ ls -1 '/dev/da[0-9][0-9]' >+ ls -1 '/dev/da[0-9][0-9][0-9]' >+ ls -1 '/dev/mmcsd[0-9]' >+ ls -1 '/dev/mmcsd[0-9][0-9]' >+ ls -1 '/dev/mmcsd[0-9][0-9][0-9]' >+ ls -1 '/dev/md[0-9]' >+ ls -1 '/dev/md[0-9][0-9]' >+ ls -1 '/dev/md[0-9][0-9][0-9]' >+ ls -1 '/dev/vtbd[0-9]' >+ ls -1 '/dev/vtbd[0-9][0-9]' >+ ls -1 '/dev/vtbd[0-9][0-9][0-9]' >+ DISKS='ada0 >cd0 >da0 >da1 >da2' >+ echo 'ada0 >cd0 >da0 >da1 >da2' >+ grep -q -- da0 >+ DISKS=da0 >+ FORMAT_L0='%-14s %3s:%-3s %4s %-18s %20s %s\n' >+ FORMAT_L1=' %-12s %3s:%-3s %4s %-18s %20s %s\n' >+ FORMAT_L2=' %-10s %3s:%-3s %4s %-18s %20s %s\n' >+ FORMAT='%-14s %3s:%-3s %4s %-18s %20s %s\n' >+ printf '%-14s %3s:%-3s %4s %-18s %20s %s\n' DEVICE MAJ MIN SIZE TYPE LABEL MOUNT >DEVICE MAJ:MIN SIZE TYPE LABEL MOUNT >+ echo da0 >+ read DEVICE >+ gpart show da0 >+ __gpart_present da0 >+ local 'DEV=da0' >+ local 'TYPE=-' >+ local 'LABEL=-' >+ local 'MOUNT=-' >+ local 'SIZE=-' >+ local 'SIZE_FREE=-' >+ [ ! -e /dev/da0 ] >+ gpart show -p da0 >+ head -1 >+ sed -E 's-\[.*\]--g' >+ awk '{print $5}' >+ TYPE_EXFAT_HELPER_DEVICE=GPT >+ [ GPT '=' MBR ] >+ gpart show -p da0 >+ sed -E 's-\[.*\]--g' >+ sed 's|=>||g' >+ local 'GPART= 34 60437425 da0 GPT (29G) > 34 2014 - free - (1.0M) > 2048 60435411 da0p1 freebsd-zfs (29G)' >+ echo ' 34 60437425 da0 GPT (29G) > 34 2014 - free - (1.0M) > 2048 60435411 da0p1 freebsd-zfs (29G)' >+ read BEG END NAME TYPE SIZE SIZE_FREE >+ [ 0 '=' 0 ] >+ LEVEL_DEV=1 >+ FORMAT='%-14s %3s:%-3s %4s %-18s %20s %s\n' >+ __print_parts da0 GPT '(29G)' >+ local 'NAME=da0' >+ local 'TYPE=GPT' >+ local 'SIZE=(29G)' >+ local 'SIZE_FREE=' >+ [ GPT '=' !0 ] >+ echo '(29G)' >+ tr -d '()' >+ local 'SIZE=29G' >+ [ - '=' '' ] >+ [ - '=' '' ] >+ __major_minor da0 >+ local 'DEV=da0' >+ stat -f %Hr /dev/da0 >+ MAJ=2 >+ stat -f %Lr /dev/da0 >+ MIN=105 >+ printf '%-14s %3s:%-3s %4s %-18s %20s %s\n' da0 2 105 29G GPT - - >da0 2:105 29G GPT - - >+ [ -e /dev/da0.eli ] >+ read BEG END NAME TYPE SIZE SIZE_FREE >+ [ 1 '=' 0 ] >+ FORMAT=' %-12s %3s:%-3s %4s %-18s %20s %s\n' >+ gpart show -p - >+ sed -E 's-\[.*\]--g' >+ sed 's|=>||g' >+ local 'GPART_PARTS=' >+ [ '' '!=' '' ] >+ [ free '=' freebsd-swap ] >+ __mount_label - >+ local 'TARGET=-' >+ local 'MOUNT_FOUND=0' >+ local 'LABEL_FOUND=0' >+ LABEL=- >+ [ '' '=' 1 ] >+ MOUNT=- >+ [ ! -e /dev/- ] >+ return >+ __print_parts - free - '(1.0M)' >+ local 'NAME=-' >+ local 'TYPE=free' >+ local 'SIZE=-' >+ local 'SIZE_FREE=(1.0M)' >+ echo '(1.0M)' >+ tr -d '()' >+ local 'SIZE_FREE=1.0M' >+ [ 1.0M '=' 8.0K ] >+ printf ' %-12s %3s:%-3s %4s %-18s %20s %s\n' '<FREE>' - - 1.0M - - - > <FREE> -:- 1.0M - - - >+ read BEG END NAME TYPE SIZE SIZE_FREE >+ [ 1 '=' 0 ] >+ FORMAT=' %-12s %3s:%-3s %4s %-18s %20s %s\n' >+ gpart show -p da0p1 >+ sed -E 's-\[.*\]--g' >+ sed 's|=>||g' >+ local 'GPART_PARTS=' >+ [ '' '!=' '' ] >+ [ freebsd-zfs '=' freebsd-swap ] >+ __mount_label da0p1 >+ local 'TARGET=da0p1' >+ local 'MOUNT_FOUND=0' >+ local 'LABEL_FOUND=0' >+ LABEL=- >+ [ '' '=' 1 ] >+ MOUNT=- >+ [ ! -e /dev/da0p1 ] >+ [ 0 '!=' 1 ] >+ mount >+ grep '/dev/da0p1 ' >+ awk 'END{print $3}' >+ MOUNT='' >+ [ '' '=' '' ] >+ MOUNT=- >+ MOUNT='<ZFS>' >+ local 'MOUNT_FOUND=1' >+ [ 0 '!=' 1 ] >+ echo ' gpt/efiboot0 N/A ada0p1 > msdosfs/EFISYS N/A ada0p1 > gpt/gptboot0 N/A ada0p2 >iso9660/ONEPLUS%20DRIVERS N/A cd0 > gpt/cache-copperbowl N/A da0p1 > gpt/cache-transcend N/A da1p1 > gpt/Transcend N/A da2p1' >+ grep -v ufsid >+ grep 'da0p1$' >+ local 'GLABEL_GREP= gpt/efiboot0 N/A ada0p1 > msdosfs/EFISYS N/A ada0p1 > gpt/cache-copperbowl N/A da0p1' >+ [ ' gpt/efiboot0 N/A ada0p1 > msdosfs/EFISYS N/A ada0p1 > gpt/cache-copperbowl N/A da0p1' '=' '' ] >+ echo ' gpt/efiboot0 N/A ada0p1 > msdosfs/EFISYS N/A ada0p1 > gpt/cache-copperbowl N/A da0p1' >+ read PROVIDER STATUS DEVICE >+ echo ' gpt/efiboot0 N/A ada0p1 > msdosfs/EFISYS N/A ada0p1 > gpt/cache-copperbowl N/A da0p1' >+ grep -m 1 da0p1 >+ awk '{print $1}' >+ LABEL=gpt/efiboot0 >+ local 'LABEL_FOUND=1' >+ break >+ [ 1 '!=' 1 ] >+ [ 1 '!=' 1 ] >+ [ 1 '!=' 1 ] >+ SWAP_FOUND=0 >+ __print_parts da0p1 freebsd-zfs '(29G)' >+ local 'NAME=da0p1' >+ local 'TYPE=freebsd-zfs' >+ local 'SIZE=(29G)' >+ local 'SIZE_FREE=' >+ [ freebsd-zfs '=' !0 ] >+ echo '(29G)' >+ tr -d '()' >+ local 'SIZE=29G' >+ [ gpt/efiboot0 '=' '' ] >+ [ '<ZFS>' '=' '' ] >+ __major_minor da0p1 >+ local 'DEV=da0p1' >+ stat -f %Hr /dev/da0p1 >+ MAJ=2 >+ stat -f %Lr /dev/da0p1 >+ MIN=106 >+ printf ' %-12s %3s:%-3s %4s %-18s %20s %s\n' da0p1 2 106 29G freebsd-zfs gpt/efiboot0 '<ZFS>' > da0p1 2:106 29G freebsd-zfs gpt/efiboot0 <ZFS> >+ [ -e /dev/da0p1.eli ] >+ read BEG END NAME TYPE SIZE SIZE_FREE >+ read DEVICE >%
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 257409
:
226676
|
226677
|
226679
|
226681
| 226684 |
226687
|
226695