/* If ./configure was run with --without-libarchive, then only
* __populate_fs_from_tar() remains in this file and will return an error. */
-errcode_t __populate_fs_from_tar(ext2_filsys, ext2_ino_t, const char *,
- ext2_ino_t, struct hdlinks_s *,
- struct file_info *,
- struct fs_ops_callbacks *) {
+errcode_t __populate_fs_from_tar(ext2_filsys fs EXT2FS_ATTR((unused)),
+ ext2_ino_t root_ino EXT2FS_ATTR((unused)),
+ const char *source_tar EXT2FS_ATTR((unused)),
+ ext2_ino_t root EXT2FS_ATTR((unused)),
+ struct hdlinks_s *hdlinks EXT2FS_ATTR((unused)),
+ struct file_info *target EXT2FS_ATTR((unused)),
+ struct fs_ops_callbacks *fs_callbacks EXT2FS_ATTR((unused))) {
com_err(__func__, 0,
_("you need to compile e2fsprogs without --without-libarchive"
"be able to process tarballs"));
- return 1;
+ return ENOTSUP;
}
#else