mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
Fix in-kernel sysfs entries
The recent sysfs zfs properties feature breaks the in-kernel builds of zfs (sans module). When not built as a module add the sysfs entries under /sys/fs/zfs/. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Don Brady <don.brady@delphix.com> Closes #7868 Closes #7872
This commit is contained in:
committed by
Brian Behlendorf
parent
e7b677aa5d
commit
73a5ec30bf
@@ -35,6 +35,7 @@ void zfs_sysfs_fini(void);
|
||||
#define zfs_sysfs_init()
|
||||
#define zfs_sysfs_fini()
|
||||
|
||||
boolean_t zfs_mod_supported(const char *, const char *);
|
||||
#endif
|
||||
|
||||
#define ZFS_SYSFS_POOL_PROPERTIES "properties.pool"
|
||||
@@ -43,5 +44,7 @@ void zfs_sysfs_fini(void);
|
||||
#define ZFS_SYSFS_POOL_FEATURES "features.pool"
|
||||
|
||||
#define ZFS_SYSFS_DIR "/sys/module/zfs"
|
||||
/* Alternate location when ZFS is built as part of the kernel (rare) */
|
||||
#define ZFS_SYSFS_ALT_DIR "/sys/fs/zfs"
|
||||
|
||||
#endif /* _SYS_ZFS_SYSFS_H */
|
||||
|
||||
Reference in New Issue
Block a user