[Top][All Lists]

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

[PATCH] - ext2fs: Fix fast symlinks created by linux in hurd

From: Damien Zammit
Subject: [PATCH] - ext2fs: Fix fast symlinks created by linux in hurd
Date: Sun, 24 Nov 2019 12:26:27 +1100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.0

Previously on an ext2 partition,
any small symlink would be broken in hurd when created by linux.

I noticed this because I tried to rsync my / offline (in linux) to another disk
and hurd was subsequently unable to read any of the small symlinks.

This patch makes hurd correctly read fast symlinks created by linux 
by ignoring when i_blocks != 0 for such a symlink.

I also removed the assertion when writing a fast symlink on the i_blocks to be 
because linux seems to allocate 8 blocks for any fast symlink.

With this patch, all my symlinks are restored without touching the fs.


Attachment: 0001-ext2fs-Fix-fast-symlinks-created-by-linux.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]