I am trying to copy the x.file data into virtual volume of size 32 KB and trying to read again 32 KB from the same volume to y.file. It shows expected output when using cat y.file but whenever I am using vim/vi to see the content it shows appended character "^@".
Command to write data in virtual volume.
dd if=/tmp/x.file of=/dev/vv/<vv_id> seek=0 bs=16K count=2
Command to read the data from virtual volume.
dd of=/tmp/y.file if=/dev/vv/<vv_id> seek=0 bs=16K count=2
x.file contains series of pattern and size of 24 KB.
PATTERN PATTERN PATTERN
PATTERN PATTERN PATTERN^@^@^@^@
Now, I know what was the reason of showing "^@" character. My input file size was less than 32 KB. But still have doubt why "^@" gets filled as it could be any other value ? Any specific reason ?