wok annotate ext4magic/stuff/patches/ext4magic-0.3.2-i_dir_acl.patch @ rev 25561

created recipe for ext4magic
author Hans-G?nter Theisgen
date Sun Apr 30 06:26:09 2023 +0100 (2023-04-30)
parents
children
rev   line source
Hans-G?nter@25561 1 From: Gokturk Yuksek <gokturk@gentoo.org>
Hans-G?nter@25561 2 Subject: [PATCH] src/inode: supersede i_dir_acl with i_size_high
Hans-G?nter@25561 3
Hans-G?nter@25561 4 The upstream has removed the macro that defined i_dir_acl as
Hans-G?nter@25561 5 i_size_high which causes a build failure with the later versions of
Hans-G?nter@25561 6 e2fsprogs. Replace every reference to inode->i_dir_acl with
Hans-G?nter@25561 7 inode->i_size_high.
Hans-G?nter@25561 8
Hans-G?nter@25561 9 [0] https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git/commit/?id=578fcbfd2e61e0b13ce8c7b62804c941d6c1eb8e
Hans-G?nter@25561 10
Hans-G?nter@25561 11 --- a/src/inode.c
Hans-G?nter@25561 12 +++ b/src/inode.c
Hans-G?nter@25561 13 @@ -404,14 +404,14 @@
Hans-G?nter@25561 14 fprintf(out,
Hans-G?nter@25561 15 "%sFile ACL: %d Directory ACL: %d Translator: %d\n",
Hans-G?nter@25561 16 prefix,
Hans-G?nter@25561 17 - inode->i_file_acl, LINUX_S_ISDIR(inode->i_mode) ? inode->i_dir_acl : 0,
Hans-G?nter@25561 18 + inode->i_file_acl, LINUX_S_ISDIR(inode->i_mode) ? inode->i_size_high : 0,
Hans-G?nter@25561 19 inode->osd1.hurd1.h_i_translator);
Hans-G?nter@25561 20 else
Hans-G?nter@25561 21 fprintf(out, "%sFile ACL: %llu Directory ACL: %d\n",
Hans-G?nter@25561 22 prefix,
Hans-G?nter@25561 23 inode->i_file_acl | ((long long)
Hans-G?nter@25561 24 (inode->osd2.linux2.l_i_file_acl_high) << 32),
Hans-G?nter@25561 25 - LINUX_S_ISDIR(inode->i_mode) ? inode->i_dir_acl : 0);
Hans-G?nter@25561 26 + LINUX_S_ISDIR(inode->i_mode) ? inode->i_size_high : 0);
Hans-G?nter@25561 27 if (os == EXT2_OS_LINUX)
Hans-G?nter@25561 28 fprintf(out, "%sLinks: %d Blockcount: %llu\n",
Hans-G?nter@25561 29 prefix, inode->i_links_count,