[Bug 198301] ext4 fails to create symlink if target length is greater than block size (but smaller than PATH_MAX)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.kernel.org/show_bug.cgi?id=198301

Josh Johnston (josh.johnston@xxxxxxxxxxx) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |josh.johnston@xxxxxxxxxxx

--- Comment #2 from Josh Johnston (josh.johnston@xxxxxxxxxxx) ---
Created attachment 273589
  --> https://bugzilla.kernel.org/attachment.cgi?id=273589&action=edit
Proposed patch

Here's a proposed patch.  When the symlink's path length is longer than a
block, it uses the existing code to fall back on a slow symlink.  This is the
better behavior, rather than throwing an error.


Block size should only be a limitation on the path if using a fast symlink,
which includes the path in the inode.  More info on fast/slow symlinks at:

https://unix.stackexchange.com/questoins/147535/fast-and-slow-symlinks

-- 
You are receiving this mail because:
You are watching the assignee of the bug.



[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux