File moved while being written to, write continues, how is that possible?

Oliver Grawert ogra at ubuntu.com
Wed Mar 10 07:36:33 UTC 2021


hi,
Am Mittwoch, den 10.03.2021, 06:59 +0100 schrieb Bo Berglund:
> 
> So now I wonder if this is a built-in feature of Linux generally 

it indeed depeds on the underlying filesystem that is used on the
physical disk in use, in ext4 (which is the typical default in ubuntu)
the actual blocks on disk that hold the binary data of a file is
maintained separately from the meta data information (file name,
location, folder names, permissions etc) ... 

so if you mv a file, only the metadata in the inode table of the
filesystem is updated, the physical blocks on disk stay in the same
location ... 

ciao
	oli
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20210310/318c22e5/attachment.sig>


More information about the ubuntu-users mailing list