The new stay-on-the-same-filesystem toggle is great. Would it be acceptable now to allow access to the info which filesystem it is? There’s no public API for that.
An example where this is useful is when a user supplies a path to be scanned, resulting in a report. To enable an audit trail, the filesystem identifier this scan pertained to would ideally be recorded.
I don't think so, no. The device number is not unconditionally recorded. If you need to build an audit trail, then just capture the metadata you need. It isn't much code. Or you can put that in a new crate.
The new stay-on-the-same-filesystem toggle is great. Would it be acceptable now to allow access to the info which filesystem it is? There’s no public API for that.
An example where this is useful is when a user supplies a path to be scanned, resulting in a report. To enable an audit trail, the filesystem identifier this scan pertained to would ideally be recorded.