Why does an empty file created on a gfs2 filesystem show its size as 8K?
Issue
Why does an empty file created on a gfs2 filesystem show its size as 8K?
# touch /mnt/gfs2/filesystem-selinux-enabled.txt
# stat -c "%b %B %s %o" /mnt/gfs2/filesystem-selinux-enabled.txt
16 512 0 4096
[root@cs-rh6-3 ~]# du -k /mnt/gfs2/filesystem-selinux-enabled.txt
8 /mnt/gfs2/filesystem-selinux-enabled.txt
Environment
- Red Hat Enterprise Linux Server 5, 6, 7 (with the High Availability and Resilient Storage Add Ons)
- A Global Filesystem 2(
gfs2)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
