[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <875xyse47n.fsf@mailhost.krisman.be>
Date: Tue, 13 Feb 2024 11:09:16 -0500
From: Gabriel Krisman Bertazi <krisman@...e.de>
To: Eugen Hristev <eugen.hristev@...labora.com>
Cc: tytso@....edu, adilger.kernel@...ger.ca, jaegeuk@...nel.org,
chao@...nel.org, viro@...iv.linux.org.uk, brauner@...nel.org,
linux-ext4@...r.kernel.org, linux-f2fs-devel@...ts.sourceforge.net,
jack@...e.cz, linux-kernel@...r.kernel.org,
linux-fsdevel@...r.kernel.org, kernel@...labora.com, Gabriel Krisman
Bertazi <krisman@...labora.com>, Eric Biggers <ebiggers@...gle.com>
Subject: Re: [RESEND PATCH v9 1/3] libfs: Introduce case-insensitive string
comparison helper
Eugen Hristev <eugen.hristev@...labora.com> writes:
> On 2/9/24 16:40, Gabriel Krisman Bertazi wrote:
>> Eugen Hristev <eugen.hristev@...labora.com> writes:
> With the changes you suggested, I get these errors now :
>
> [ 107.409410] EXT4-fs error (device sda1): ext4_lookup:1816: inode #521217: comm
> ls: 'CUC' linked to parent dir
> ls: cannot access '/media/CI_dir/CUC': Structure needs cleaning
> total 8
> drwxr-xr-x 2 root root 4096 Feb 12 11:51 .
> drwxr-xr-x 4 root root 4096 Feb 12 11:47 ..
> -????????? ? ? ? ? ? CUC
>
> Do you have any idea about what is wrong ?
Hm, there's a bug somewhere. The lookup got broken and ls got an error.
Did you debug it a bit? can you share the code and a reproducer?
>From a quick look at the example I suggested, utf8_strncasecmp* return 0
on match, but ext4_match should return true when matched. So remember to
negate the output:
..
res = !utf8_strncasecmp(um, name, &dirent);
..
--
Gabriel Krisman Bertazi
Powered by blists - more mailing lists