Re: [PATCH v3] erofs: fix file handle encoding for 64-bit NIDs

2025-05-06 Thread Hongbo Li
On 2025/5/7 10:42, Gao Xiang wrote: On 2025/5/7 09:53, Hongbo Li wrote: On 2025/5/6 23:10, Gao Xiang wrote: Hi Hongbo, On 2025/4/29 21:42, Hongbo Li wrote: In erofs, the inode number has the location information of files. The default encode_fh uses the ino32, this will lack of some inf

Re: [PATCH v3] erofs: fix file handle encoding for 64-bit NIDs

2025-05-06 Thread Gao Xiang
On 2025/5/7 09:53, Hongbo Li wrote: On 2025/5/6 23:10, Gao Xiang wrote: Hi Hongbo, On 2025/4/29 21:42, Hongbo Li wrote: In erofs, the inode number has the location information of files. The default encode_fh uses the ino32, this will lack of some information when the file is too big. So w

Re: [PATCH v3] erofs: fix file handle encoding for 64-bit NIDs

2025-05-06 Thread Hongbo Li
On 2025/5/6 23:10, Gao Xiang wrote: Hi Hongbo, On 2025/4/29 21:42, Hongbo Li wrote: In erofs, the inode number has the location information of files. The default encode_fh uses the ino32, this will lack of some information when the file is too big. So we need the internal helpers to encode f

Re: [PATCH v3] erofs: fix file handle encoding for 64-bit NIDs

2025-05-06 Thread Gao Xiang
Hi Hongbo, On 2025/4/29 21:42, Hongbo Li wrote: In erofs, the inode number has the location information of files. The default encode_fh uses the ino32, this will lack of some information when the file is too big. So we need the internal helpers to encode filehandle. EROFS uses NID to indicate

[PATCH v3] erofs: fix file handle encoding for 64-bit NIDs

2025-04-29 Thread Hongbo Li
In erofs, the inode number has the location information of files. The default encode_fh uses the ino32, this will lack of some information when the file is too big. So we need the internal helpers to encode filehandle. It is easy to reproduce test: 1. prepare an erofs image with nid bigger than