Page MenuHomeFreeBSD

Get rid of Linux dev translation hook to kern_statat

Authored by dchagin on Jun 13 2022, 6:26 PM.



This hook is not needed anymore since 77d3337c9.

Diff Detail

rS FreeBSD src repository - subversion
Lint OK
No Unit Test Coverage
Build Status
Buildable 45960
Build 42848: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Jun 13 2022, 7:12 PM

Thnak you, but it looks like I was a little hasty, there are still a few problems here.

  1. Conversion of st_rdev , which is not hard to do without this hook.
  2. Conversion of st_dev. The point is that the standard file descriptors are not reopened for emulated process at exec or at chroot time (jails?) and they points to the devfs mounted to the /dev instead of /path/to/chroot/dev or compat.linux.emul_path/dev.

So st_dev (filled from f_fsid) returned by fstat() and stat() are differs.

I'm stiil ponders how to fix that.