You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the root fs is a btrfs volume c-b-m will fail to probe it.
cbm_probe_path() will call cbm_devnode_to_devpath(), there we assert the major number and assume it should be greater than 0, but in the case of btrfs the major will be always 0 (due its pseudo-fs nature). We must implement an alternate case when we realize we're dealing with btrfs.
The text was updated successfully, but these errors were encountered:
Calling stat() on some filesystems, like Btrfs,
results in a dev_t with no relation to the backing device(s),
and subsequent failure to detect the root fs.
Add support such filesystems by retrieving the block device from
`/proc/self/mounts` and working on from there.
Resolvesclearlinux#61, clearlinux#182 and clearlinux#193.
When the root fs is a btrfs volume c-b-m will fail to probe it.
cbm_probe_path()
will callcbm_devnode_to_devpath()
, there we assert the major number and assume it should be greater than 0, but in the case of btrfs the major will be always 0 (due its pseudo-fs nature). We must implement an alternate case when we realize we're dealing with btrfs.The text was updated successfully, but these errors were encountered: