vermaden / lsblk

List information about block devices in the FreeBSD system.
BSD 2-Clause "Simplified" License
25 stars 2 forks source link

fstat: /dev/fuse: No such file or directory #3

Closed jeremyprior closed 3 years ago

jeremyprior commented 3 years ago

Hi!

I've just upgraded to 3.6 and I'm getting the following error:

# lsblk
DEVICE         MAJ:MIN SIZE TYPE                                          LABEL MOUNT
ada0             0:101 233G GPT                                               - -
fstat: /dev/fuse: No such file or directory
  ada0p1         0:102 512K freebsd-boot                           gpt/gptboot0 -
  <FREE>         -:-   492K -                                                 - -
  ada0p2         0:103 2.0G freebsd-swap                              gpt/swap0 SWAP
  ada0p3         0:104 222G freebsd-zfs                                gpt/zfs0 <ZFS>
  <FREE>         -:-   9.3G -                                                 - -

This is caused by an unconditional use of /dev/fuse at https://github.com/vermaden/lsblk/blob/master/lsblk#L281

FreeBSD-12.2-STABLE with up-to-date ports collection.

Cheers, ʝɛʑ

vermaden commented 3 years ago

Thanks for reporting that.

Please check now :)

https://github.com/vermaden/lsblk/blob/master/lsblk

Regards.

jeremyprior commented 3 years ago

Much better!

 # ./lsblk
DEVICE         MAJ:MIN SIZE TYPE                                          LABEL MOUNT
ada0             0:101 233G GPT                                               - -
  ada0p1         0:102 512K freebsd-boot                           gpt/gptboot0 -
  <FREE>         -:-   492K -                                                 - -
  ada0p2         0:103 2.0G freebsd-swap                              gpt/swap0 SWAP
  ada0p3         0:104 222G freebsd-zfs                                gpt/zfs0 <ZFS>
  <FREE>         -:-   9.3G -                                                 - -

Thanks.