Eu tenho um dispositivo de armazenamento em massa e, às vezes, atualizo seu registro de data e hora:
$ stat /dev/sda
File: ‘/dev/sda’
Size: 0 Blocks: 0 IO Block: 4096 block special file
Device: 6h/6d Inode: 21920486 Links: 1 Device type: 8,0
Access: (0660/brw-rw----) Uid: ( 0/ root) Gid: ( 6/ disk)
Access: 2017-01-30 14:46:01.843548633 +0200
Modify: 2017-01-30 14:46:01.843548633 +0200
Change: 2017-01-30 14:46:01.843548633 +0200
Birth: -
$ stat /dev/sda
File: ‘/dev/sda’
Size: 0 Blocks: 0 IO Block: 4096 block special file
Device: 6h/6d Inode: 21920486 Links: 1 Device type: 8,0
Access: (0660/brw-rw----) Uid: ( 0/ root) Gid: ( 6/ disk)
Access: 2017-01-30 14:47:33.412878263 +0200
Modify: 2017-01-30 14:47:33.412878263 +0200
Change: 2017-01-30 14:47:33.412878263 +0200
Birth: -
Qual é a lógica no kernel e / ou driver sd w.r.t. atualizando estes? Eu só não sei onde procurar na fonte do kernel.
Tags kernel block-device