Slightly reduce an overhead for the open() call in the zfsloader.

libstand(3) tries to detect file system in the predefined order,
but zfsloader usually is used for the booting from ZFS, and there is
no need to try detect several file system types for each open() call.
This commit is contained in:
Andrey V. Elsukov 2012-09-11 04:54:44 +00:00
parent 7e71f1e85c
commit 915e341bac
2 changed files with 6 additions and 6 deletions

View File

@ -70,6 +70,9 @@ struct devsw *devsw[] = {
};
struct fs_ops *file_system[] = {
#if defined(LOADER_ZFS_SUPPORT)
&zfs_fsops,
#endif
&ufs_fsops,
&ext2fs_fsops,
&dosfs_fsops,
@ -78,9 +81,6 @@ struct fs_ops *file_system[] = {
&nandfs_fsops,
#endif
&splitfs_fsops,
#if defined(LOADER_ZFS_SUPPORT)
&zfs_fsops,
#endif
#ifdef LOADER_GZIP_SUPPORT
&gzipfs_fsops,
#endif

View File

@ -170,15 +170,15 @@ struct file_format *file_formats[] = {
};
struct fs_ops *file_system[] = {
#ifdef LOADER_ZFS_SUPPORT
&zfs_fsops,
#endif
#ifdef LOADER_UFS_SUPPORT
&ufs_fsops,
#endif
#ifdef LOADER_CD9660_SUPPORT
&cd9660_fsops,
#endif
#ifdef LOADER_ZFS_SUPPORT
&zfs_fsops,
#endif
#ifdef LOADER_ZIP_SUPPORT
&zipfs_fsops,
#endif