Bug 242934 - WISH: md(4) and mdconfig(8) should support offset for vnodes
Summary: WISH: md(4) and mdconfig(8) should support offset for vnodes
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 11.3-STABLE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: feature
Depends on:
Blocks:
 
Reported: 2019-12-28 04:06 UTC by Mikhail Teterin
Modified: 2019-12-28 05:26 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mikhail Teterin freebsd_committer freebsd_triage 2019-12-28 04:06:45 UTC
In addition to size, it should be possible to also set the offset for vnode-backed memory-disks.

For example, dealing with a corrupted disk-image, it may be useful to map the uncorrupted section of it only -- to recover a filesystem on a partition.

Currently this requires using something like dd to make a copy of the desired section. Seems like this can be improved with (relative) ease...
Comment 1 Conrad Meyer freebsd_committer freebsd_triage 2019-12-28 05:26:27 UTC
It should be possible with mdconfig + geom_nop's "-o offset" parameter.