You've already forked linux-apfs-oot
mirror of
https://github.com/linux-apfs/linux-apfs-oot.git
synced 2026-05-01 15:01:20 -07:00
72e6425af6
Copy the code of the APFS module into its own repository, without the rest of the kernel tree. Development will continue upstream, but the intention is to make life easier for potential users. To get the module to build independently, rewrite the Makefile and add a definition for the APFS_SUPER_MAGIC macro. Since the intention is to support a range of kernel versions, use preprocessor checks to handle kernels without statx, without iversion, and without SB_RDONLY. Provide a README file based on the upstream documentation, but with additional build and mount instructions. Add a LICENSE file as well. Signed-off-by: Ernesto A. Fernández <ernesto.mnd.fernandez@gmail.com>
31 lines
786 B
C
31 lines
786 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* linux/fs/apfs/apfs.h
|
|
*
|
|
* Copyright (C) 2018 Ernesto A. Fernández <ernesto.mnd.fernandez@gmail.com>
|
|
*/
|
|
|
|
#ifndef _APFS_H
|
|
#define _APFS_H
|
|
|
|
#define EFSBADCRC EBADMSG /* Bad CRC detected */
|
|
#define EFSCORRUPTED EUCLEAN /* Filesystem is corrupted */
|
|
|
|
/*
|
|
* Inode and file operations
|
|
*/
|
|
|
|
/* file.c */
|
|
extern const struct file_operations apfs_file_operations;
|
|
extern const struct inode_operations apfs_file_inode_operations;
|
|
|
|
/* namei.c */
|
|
extern const struct inode_operations apfs_dir_inode_operations;
|
|
extern const struct inode_operations apfs_special_inode_operations;
|
|
extern const struct dentry_operations apfs_dentry_operations;
|
|
|
|
/* symlink.c */
|
|
extern const struct inode_operations apfs_symlink_inode_operations;
|
|
|
|
#endif /* _APFS_H */
|