storaged-project / libblockdev

A library for manipulating block devices.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

xfs_db might return outdated info for a mounted filesystem...

mvollmer opened this issue · comments

I made you switch to use xfs_db instead of xfs_info in #871, but turns out that xfs_db might return the old size when you run it right after growing a mounted xfs filesystem. xfs_info (via xfs_spaceman) return the new size.

Grrr.

It can take a long time (tens of seconds) until xfs_db catches up.

It can take a long time (tens of seconds) until xfs_db catches up.

Sounds like a writeback issue. Perhaps an explicit sync/fsync() might help.