]> xenbits.xensource.com Git - people/julieng/freebsd.git/commitdiff
Move NFS and TFTP filesystems before the synthetic filesystems (bzip,
authorjhb <jhb@FreeBSD.org>
Tue, 11 Nov 2014 19:44:59 +0000 (19:44 +0000)
committerjhb <jhb@FreeBSD.org>
Tue, 11 Nov 2014 19:44:59 +0000 (19:44 +0000)
gzip, and split).  "Real" filesystems should always be listed first so
that the "bare" filename is tried before alternate filenames.  For PXE
booting in particular this can remove a lot of spurious pathname lookups.

While here, move splitfs to the bottom after the bzip and gzip filesystems
as it is the least often used.

Tested by: Prokash Sinha <psinha@panasas.com>
MFC after: 1 week

sys/boot/i386/loader/conf.c

index ac19751bd7e5407da9a4189aa1ee46d01bac568a..fda6fd25a07e540dce6a1b95db015960fdb50fdb 100644 (file)
@@ -80,8 +80,11 @@ struct fs_ops *file_system[] = {
 #if defined(LOADER_NANDFS_SUPPORT)
     &nandfs_fsops,
 #endif
-#ifdef LOADER_SPLIT_SUPPORT
-    &splitfs_fsops,
+#ifdef LOADER_NFS_SUPPORT 
+    &nfs_fsops,
+#endif
+#ifdef LOADER_TFTP_SUPPORT
+    &tftp_fsops,
 #endif
 #ifdef LOADER_GZIP_SUPPORT
     &gzipfs_fsops,
@@ -89,11 +92,8 @@ struct fs_ops *file_system[] = {
 #ifdef LOADER_BZIP2_SUPPORT
     &bzipfs_fsops,
 #endif
-#ifdef LOADER_NFS_SUPPORT 
-    &nfs_fsops,
-#endif
-#ifdef LOADER_TFTP_SUPPORT
-    &tftp_fsops,
+#ifdef LOADER_SPLIT_SUPPORT
+    &splitfs_fsops,
 #endif
     NULL
 };