mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-12-09 00:00:17 +03:00
fixup! posix_to_bcachefs: Process dirents in sorted order
This commit is contained in:
parent
6a83d70ef5
commit
8fae948d60
@ -319,7 +319,8 @@ static int dirent_cmp(const void *_l, const void *_r)
|
||||
const struct dirent *l = _l;
|
||||
const struct dirent *r = _r;
|
||||
|
||||
return strcmp(l->d_name, r->d_name);
|
||||
return cmp_int(l->d_type, r->d_type) ?:
|
||||
strcmp(l->d_name, r->d_name);
|
||||
}
|
||||
|
||||
static void copy_dir(struct copy_fs_state *s,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user