-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanup: gensquashfs: merge xattr scanning code
The fstree from file and directory xattr scanning code essentially do the same thing now. Except the later also _optionally_ reads xattrs from a directory source. Merge the two code paths. Signed-off-by: David Oberhollenzer <[email protected]>
- Loading branch information
Showing
4 changed files
with
10 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* SPDX-License-Identifier: GPL-3.0-or-later */ | ||
/* | ||
* dirscan_xattr.c | ||
* apply_xattr.c | ||
* | ||
* Copyright (C) 2019 David Oberhollenzer <[email protected]> | ||
*/ | ||
|
@@ -207,8 +207,8 @@ static int xattr_xcan_dfs(const char *path_prefix, void *selinux_handle, | |
return ret; | ||
} | ||
|
||
int xattrs_from_dir(fstree_t *fs, const char *path, void *selinux_handle, | ||
void *xattr_map, sqfs_xattr_writer_t *xwr, bool scan_xattr) | ||
int apply_xattrs(fstree_t *fs, const char *path, void *selinux_handle, | ||
void *xattr_map, sqfs_xattr_writer_t *xwr, bool scan_xattr) | ||
{ | ||
if (xwr == NULL) | ||
return 0; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters