Andrew Kaster
e821b349b2
Kernel: Give Devices without a custody a less fake absoulte_path
...
This hack allows self-test mode run-tests-and-shutdown.sh to give
TestProcFs a stat(2)-able /proc/self/fd/0. For some reason, when
stdin is a SerialDevice, /proc/self/fd/0 will be a symlink to the device
as expected, but, calling realpath or stat on /proc/self/fd/0 will error
out. realpath will give the string from Device::absolute_path() which
would be something like "device:4,64 (SerialDevice)". When VFS is trying
to resolve_path so that we can stat the file, it would bail out on this
fake-y path.
Change the fake path (that doesn't show up when you ls a device, nor
when checking the devices tab in SystemMonitor) from the major/minor
device number and class_name() to /dev/device_name(). There's probably
a very hairy yak standing behind this issue that was only discovered due
to the ProcFS rework.
2021-06-30 12:07:57 +04:30
..
2021-06-29 20:53:59 +02:00
2021-06-27 09:46:27 +02:00
2021-06-29 20:53:59 +02:00
2021-06-30 12:07:57 +04:30
2021-06-29 20:53:59 +02:00
2021-06-27 09:46:27 +02:00
2021-06-28 15:55:00 +02:00
2021-06-24 00:38:23 +02:00
2021-04-22 11:22:27 +02:00
2021-06-24 17:35:49 +04:30
2021-06-29 20:53:59 +02:00
2021-06-28 15:55:00 +02:00
2021-06-29 20:53:59 +02:00
2021-06-24 00:38:23 +02:00
2021-06-24 00:38:23 +02:00
2021-06-25 19:26:30 +02:00
2021-06-25 19:26:30 +02:00
2021-06-28 22:29:28 +02:00
2021-04-22 21:15:54 +02:00
2021-04-22 21:15:54 +02:00
2021-06-29 22:57:52 +04:30
2021-06-29 22:19:29 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-06-24 00:38:23 +02:00
2021-06-09 22:44:09 +04:30
2021-06-24 00:38:23 +02:00
2021-05-16 19:58:33 +02:00
2021-06-29 22:28:52 +02:00
2021-04-22 11:22:27 +02:00
2021-06-12 18:17:25 +04:30
2021-06-24 00:38:23 +02:00
2021-06-16 21:29:36 +02:00
2021-04-22 11:22:27 +02:00
2021-04-29 00:59:26 +02:00
2021-04-29 00:59:26 +02:00
2021-06-29 21:47:20 +02:00
2021-06-29 20:53:59 +02:00
2021-06-28 15:55:00 +02:00
2021-06-24 17:35:49 +04:30
2021-06-24 17:35:49 +04:30
2021-05-13 08:27:42 +02:00
2021-06-24 10:29:09 +02:00
2021-06-24 17:35:49 +04:30
2021-06-24 10:29:09 +02:00
2021-06-02 22:59:39 +01:00
2021-06-02 22:59:39 +01:00
2021-06-28 19:26:06 +02:00
2021-04-22 11:22:27 +02:00
2021-06-19 12:54:33 +02:00
2021-04-25 09:38:27 +02:00
2021-06-24 00:38:23 +02:00
2021-04-29 00:59:26 +02:00
2021-06-25 15:19:09 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-06-24 00:38:23 +02:00
2021-05-16 19:58:33 +02:00
2021-06-29 22:11:10 +02:00
2021-05-19 22:51:42 +02:00
2021-06-27 15:46:42 +02:00
2021-04-22 11:22:27 +02:00
2021-06-29 20:53:59 +02:00
2021-06-29 20:53:59 +02:00
2021-06-29 20:53:59 +02:00
2021-06-29 23:07:02 +02:00
2021-06-24 17:35:49 +04:30
2021-06-03 13:27:40 +02:00
2021-06-29 20:53:59 +02:00
2021-06-24 09:27:13 +02:00
2021-06-24 00:38:23 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-06-28 22:29:28 +02:00
2021-06-25 19:26:30 +02:00
2021-06-28 19:26:06 +02:00
2021-06-24 00:38:23 +02:00
2021-06-26 11:08:52 +02:00
2021-05-28 09:37:09 +02:00
2021-06-28 22:29:28 +02:00
2021-06-29 20:53:59 +02:00
2021-06-29 23:07:02 +02:00
2021-06-29 20:53:59 +02:00
2021-06-29 20:53:59 +02:00
2021-06-07 09:43:30 +02:00
2021-06-24 00:38:23 +02:00
2021-06-24 17:35:49 +04:30
2021-06-25 19:26:30 +02:00
2021-06-16 10:40:01 +02:00
2021-06-24 00:38:23 +02:00
2021-06-04 10:39:41 +02:00
2021-06-08 12:15:04 +02:00
2021-04-22 11:22:27 +02:00
2021-06-17 19:52:54 +02:00
2021-04-22 11:22:27 +02:00
2021-04-29 00:59:26 +02:00
2021-04-29 00:59:26 +02:00
2021-06-24 00:38:23 +02:00
2021-05-19 21:36:57 +02:00