diff options
| author | Jeffrey Mitchell <[email protected]> | 2021-01-22 16:48:20 -0800 |
|---|---|---|
| committer | Darrick J. Wong <[email protected]> | 2021-01-22 16:54:50 -0800 |
| commit | 8aa921a95335d0a8c8e2be35a44467e7c91ec3e4 (patch) | |
| tree | ba98059c538a42071ac15afb692284287002f83c /tools/perf/scripts/python/stackcollapse.py | |
| parent | 8321ddb2fa2964bffbc61400894a47dc3462323f (diff) | |
xfs: set inode size after creating symlink
When XFS creates a new symlink, it writes its size to disk but not to the
VFS inode. This causes i_size_read() to return 0 for that symlink until
it is re-read from disk, for example when the system is rebooted.
I found this inconsistency while protecting directories with eCryptFS.
The command "stat path/to/symlink/in/ecryptfs" will report "Size: 0" if
the symlink was created after the last reboot on an XFS root.
Call i_size_write() in xfs_symlink()
Signed-off-by: Jeffrey Mitchell <[email protected]>
Reviewed-by: Darrick J. Wong <[email protected]>
Signed-off-by: Darrick J. Wong <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: Brian Foster <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions