Subject: stat: 64-bit value for filesytem type

From: James Thomas Moon <[email-masked]>
Date: Sun, 10 Mar 2019 23:20:38 -0700

*tl;dr* stat returns 64-bit value fffffffffe534d42 for filesystem type of
smb2, expected fe534d42.

This README <https://github.com/coreutils/coreutils/blob/master/README>
instructs sending bug reports to this email address (can I create a github
Issue instead?)

The following prints an unexpected result

$ stat --file-system --printf='(%i) filesytem ID in hex\n(%t)
filesytem type in hex\n(%T) filesystem type in hrf'
/mnt/cifspath/monitor1
(1a) filesytem ID in hex
(fffffffffe534d42) filesytem type in hex
(smb2) filesystem type in hrf

Using Raspbian 9.8 stretch on Raspberry Pi B

$ uname -a
Linux host 4.14.98+ #1200 Tue Feb 12 20:11:02 GMT 2019 armv6l GNU/Linux

$ lsb_release -a
Description:    Raspbian GNU/Linux 9.8 (stretch)
Release:        9.8
Codename:       stretch

cpuinfo

$ cat /proc/cpuinfo
processor       : 0
model name      : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS        : 897.37
Features        : half thumb fastmult vfp edsp java tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xb76
CPU revision    : 7

Hardware        : BCM2835
Revision        : 000d

This was noticed while diagnosing bug
qbittorrent/qBittorrent/issues/10367#issuecomment-471415003
<https://github.com/qbittorrent/qBittorrent/issues/10367#issuecomment-471415003>
.

Thanks.
James Thomas Moon https://github.com/jtmoon79