-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exporting extents / file location on block device #774
Comments
The old good interface used by |
DeviceMapper ( |
For now works ok. I'll post here if something bad happens. |
Putting your swap there seems crazy risky, because bcachefs could move the extents at any point (think rebalance, compaction), and you'll be scribbling over data that backs your mounted filesystem. You would have to tackle #368 to do this safely. The way btrfs does it with swap_activate/swap_deactivate could be a good template. |
Hello.
Assuming I create a file with the
nocow
attribute and fully pre-allocate all of needed space (by writing zeroes to the file), and assuming that I have no reflink and no snapshots enabled, is there a way to export the block-layer location of the file from bcachefs, and to safely write there on block level? The original problem is that I created a filesystem that is too big, but shrinking is not supported. Thanks. Loop device on bcachefs is too slow, and causes deadlock if used as Swap, because access through bcachefs is RAM hungry...The text was updated successfully, but these errors were encountered: