Ethtool не меняет идентификатор подсистемы для Intel X550T

POSIX требует, чтобы чтение -после -запись ()всегда возвращало правильные данные в соответствии сhttp://pubs.opengroup.org/onlinepubs/007908799/xsh/write.html:

After a write() to a regular file has successfully returned:

  • Any successful read() from each byte position in the file that was modified by that write will return the data specified by the write() for that position until such byte positions are again modified.

Файл mtime не обновляется до конца записи в Linux, поэтому не должно быть возможности просмотра обновленного mtime без просмотра данных, вызвавших это mtime. Обновить.

Upon successful completion, where nbyte is greater than 0, write() will mark for update the st_ctime and st_mtime fields of the file

Ext4 пытается обеспечить соответствие POSIX -, поэтому в этом случае вы должны быть в безопасности, но не каждая файловая система полностью совместима с POSIX, поэтому YMMV.

0
30.01.2020, 14:15
1 ответ

Возможно, вы можете сделать резервную копию существующей прошивки, изменить значения и вернуть ее через STDIN. В документации сказано:

-E --change-eeprom If value is specified, changes EEPROM byte for the specified network device. offset and value specify which byte and it's new value. If value is not specified, stdin is read and written to the EEPROM. The length and offset parameters allow writing to certain portions of the EEPROM. Because of the persistent nature of writing to the EEPROM, a device-specific magic key must be specified to prevent the accidental writing to the EEPROM.

0
28.04.2021, 23:25

Теги

Похожие вопросы