• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

UpdateHub / updatehub / 31382355282
67%

Build:
DEFAULT BRANCH: master
Ran 10 Aug 2026 11:20AM UTC
Jobs 1
Files 78
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Aug 2026 11:10AM UTC coverage: 65.948% (-0.2%) from 66.164%
31382355282

push

github

otavio
fix: measure the install target's own capacity, not the devtmpfs holding its node

ensure_disk_space() asked statvfs about the install target, but every caller
hands it a device node: /dev/mmcblk0p2 for raw and copy, an mtd character
device for flash, a ubi volume for ubifs. statvfs reports on the filesystem
holding the path it is given, and for anything under /dev that is the devtmpfs
the kernel sizes after the available RAM. The check therefore compared the
object against a fraction of RAM and never once looked at the partition the
object was about to be written to.

The same number came back for every device on a machine here, 3.2G, which is
what df reports for /dev, while the devices themselves are 1.8T, 511M and
14.5G. A device large enough for the update was rejected, and, worse, one too
small was accepted whenever RAM happened to exceed it.

Device nodes are now asked for their own capacity by seeking to the end, which
block devices, mtd character devices and ubi volumes all answer with their
size. That is portable in a way the ioctls are not: BLKGETSIZE64 is declared
in terms of size_t, so its request number differs between 32 and 64 bit
userspace while the kernel writes back 64 bits either way, and mtd and ubi
would each need an ioctl of their own besides. Paths that really do live on a
filesystem keep going through statvfs.

Widening the statvfs fields before multiplying fixes a second way the same
line could mislead. They are c_ulong and fsblkcnt_t, 32 bit on the armv7
targets this runs on, so the product wrapped for any filesystem past 4GiB and
the conversion to u64 came too late to help. The count is also taken in units
of f_frsize rather than f_bsize, which is what f_bfree is expressed in.

The loop device test needs root, as creating one does, so it is marked ignored
alongside the mtd tests that already are. Its fixture is built on the loopdev
crate and on the mutex the copy and tarball tests already serialize next_free()
with, both of ... (continued)

21 of 46 new or added lines in 1 file covered. (45.65%)

2785 of 4223 relevant lines covered (65.95%)

1179.43 hits per line

Uncovered Changes

Lines Coverage ∆ File
25
32.69
9.36% updatehub/src/utils/fs.rs
Jobs
ID Job ID Ran Files Coverage
1 31382355282.1 10 Aug 2026 11:20AM UTC 78
65.95
GitHub Action Run
Source Files on build 31382355282
  • Tree
  • List 78
  • Changed 2
  • Source Changed 2
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #31382355282
  • 73a881de on github
  • Prev Build on master (#30379631623)
  • Next Build on master (#31383309257)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc