mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-28 12:53:14 +01:00
Currently, HFS declares on-disk layout's metadata structures in fs/hfs/hfs.h and HFS+ declares it in fs/hfsplus/hfsplus_raw.h. However, HFS and HFS+ on-disk layouts have some similarity and overlapping in declarations. As a result, fs/hfs/hfs.h and fs/hfsplus/hfsplus_raw.h contain multiple duplicated declarations. Moreover, both HFS and HFS+ drivers contain completely similar implemented functionality in multiple places. This patch is moving the on-disk layout declarations from fs/hfs/hfs.h and fs/hfsplus/hfsplus_raw.h into include/linux/hfs_common.h with the goal to exclude the duplication in declarations. Also, this patch prepares the basis for creating a hfslib that can aggregate common functionality without necessity to duplicate the same code in HFS and HFS+ drivers. Signed-off-by: Viacheslav Dubeyko <[email protected]> cc: John Paul Adrian Glaubitz <[email protected]> cc: Yangtao Li <[email protected]> cc: [email protected] Signed-off-by: Viacheslav Dubeyko <[email protected]>
21 lines
425 B
C
21 lines
425 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* linux/include/linux/hfsplus_raw.h
|
|
*
|
|
* Copyright (C) 1999
|
|
* Brad Boyer ([email protected])
|
|
* (C) 2003 Ardis Technologies <[email protected]>
|
|
*
|
|
* Format of structures on disk
|
|
* Information taken from Apple Technote #1150 (HFS Plus Volume Format)
|
|
*
|
|
*/
|
|
|
|
#ifndef _LINUX_HFSPLUS_RAW_H
|
|
#define _LINUX_HFSPLUS_RAW_H
|
|
|
|
#include <linux/types.h>
|
|
#include <linux/hfs_common.h>
|
|
|
|
#endif
|