Details
-
Technical task
-
Resolution: Fixed
-
Blocker
-
Lustre 2.5.0
-
10028
Description
HSM release in not preserving block count as reported by stat()
# cd /mnt/lustre # dd if=/dev/zero of=Antoshka bs=1M count=10 10+0 records in 10+0 records out 10485760 bytes (10 MB) copied, 0.0740321 s, 142 MB/s # stat Antoshka File: `Antoshka' Size: 10485760 Blocks: 20480 IO Block: 4194304 regular file Device: 2c54f966h/743766374d Inode: 144115205255725060 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2013-08-30 10:13:48.000000000 -0500 Modify: 2013-08-30 10:13:48.000000000 -0500 Change: 2013-08-30 10:13:48.000000000 -0500 # lfs hsm_archive Antoshka # lfs hsm_release Antoshka # stat Antoshka File: `Antoshka' Size: 10485760 Blocks: 0 IO Block: 4194304 regular file Device: 2c54f966h/743766374d Inode: 144115205255725060 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2013-08-30 10:13:48.000000000 -0500 Modify: 2013-08-30 10:13:48.000000000 -0500 Change: 2013-08-30 10:13:48.000000000 -0500
I had intended to fix this with LU-3811 but it will require some work in the MD* attr_set patch.
If you're thinking (philosophically) hmm, well maybe it should report a block count of 0 here then you're just wrong.