Mauro Carvalho Chehab | c54ad9a | 2020-02-17 17:11:52 +0100 | [diff] [blame] | 1 | .. SPDX-License-Identifier: GPL-2.0 |
| 2 | |
| 3 | ========================= |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4 | BeOS filesystem for Linux |
Mauro Carvalho Chehab | c54ad9a | 2020-02-17 17:11:52 +0100 | [diff] [blame] | 5 | ========================= |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 6 | |
| 7 | Document last updated: Dec 6, 2001 |
| 8 | |
Mauro Carvalho Chehab | c54ad9a | 2020-02-17 17:11:52 +0100 | [diff] [blame] | 9 | Warning |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 10 | ======= |
| 11 | Make sure you understand that this is alpha software. This means that the |
Mauro Carvalho Chehab | c54ad9a | 2020-02-17 17:11:52 +0100 | [diff] [blame] | 12 | implementation is neither complete nor well-tested. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | |
Matt LaPlante | d6bc8ac | 2006-10-03 22:54:15 +0200 | [diff] [blame] | 14 | I DISCLAIM ALL RESPONSIBILITY FOR ANY POSSIBLE BAD EFFECTS OF THIS CODE! |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 15 | |
Mauro Carvalho Chehab | c54ad9a | 2020-02-17 17:11:52 +0100 | [diff] [blame] | 16 | License |
| 17 | ======= |
| 18 | This software is covered by the GNU General Public License. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 19 | See the file COPYING for the complete text of the license. |
| 20 | Or the GNU website: <http://www.gnu.org/licenses/licenses.html> |
| 21 | |
Mauro Carvalho Chehab | c54ad9a | 2020-02-17 17:11:52 +0100 | [diff] [blame] | 22 | Author |
| 23 | ====== |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 24 | The largest part of the code written by Will Dyson <will_dyson@pobox.com> |
| 25 | He has been working on the code since Aug 13, 2001. See the changelog for |
| 26 | details. |
| 27 | |
| 28 | Original Author: Makoto Kato <m_kato@ga2.so-net.ne.jp> |
Mauro Carvalho Chehab | c54ad9a | 2020-02-17 17:11:52 +0100 | [diff] [blame] | 29 | |
Matt LaPlante | 992caac | 2006-10-03 22:52:05 +0200 | [diff] [blame] | 30 | His original code can still be found at: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 31 | <http://hp.vector.co.jp/authors/VA008030/bfs/> |
Mauro Carvalho Chehab | c54ad9a | 2020-02-17 17:11:52 +0100 | [diff] [blame] | 32 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 33 | Does anyone know of a more current email address for Makoto? He doesn't |
| 34 | respond to the address given above... |
| 35 | |
Marcos Souza | 4c74916 | 2011-08-13 12:34:59 -0700 | [diff] [blame] | 36 | This filesystem doesn't have a maintainer. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 37 | |
Mauro Carvalho Chehab | c54ad9a | 2020-02-17 17:11:52 +0100 | [diff] [blame] | 38 | What is this Driver? |
| 39 | ==================== |
| 40 | This module implements the native filesystem of BeOS http://www.beincorporated.com/ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 41 | for the linux 2.4.1 and later kernels. Currently it is a read-only |
| 42 | implementation. |
| 43 | |
| 44 | Which is it, BFS or BEFS? |
Mauro Carvalho Chehab | c54ad9a | 2020-02-17 17:11:52 +0100 | [diff] [blame] | 45 | ========================= |
| 46 | Be, Inc said, "BeOS Filesystem is officially called BFS, not BeFS". |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 47 | But Unixware Boot Filesystem is called bfs, too. And they are already in |
Matt LaPlante | 992caac | 2006-10-03 22:52:05 +0200 | [diff] [blame] | 48 | the kernel. Because of this naming conflict, on Linux the BeOS |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 49 | filesystem is called befs. |
| 50 | |
Mauro Carvalho Chehab | c54ad9a | 2020-02-17 17:11:52 +0100 | [diff] [blame] | 51 | How to Install |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 52 | ============== |
| 53 | step 1. Install the BeFS patch into the source code tree of linux. |
| 54 | |
| 55 | Apply the patchfile to your kernel source tree. |
| 56 | Assuming that your kernel source is in /foo/bar/linux and the patchfile |
| 57 | is called patch-befs-xxx, you would do the following: |
| 58 | |
| 59 | cd /foo/bar/linux |
| 60 | patch -p1 < /path/to/patch-befs-xxx |
| 61 | |
| 62 | if the patching step fails (i.e. there are rejected hunks), you can try to |
Mauro Carvalho Chehab | c54ad9a | 2020-02-17 17:11:52 +0100 | [diff] [blame] | 63 | figure it out yourself (it shouldn't be hard), or mail the maintainer |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 64 | (Will Dyson <will_dyson@pobox.com>) for help. |
| 65 | |
Matt LaPlante | 6c28f2c | 2006-10-03 22:46:31 +0200 | [diff] [blame] | 66 | step 2. Configuration & make kernel |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 67 | |
| 68 | The linux kernel has many compile-time options. Most of them are beyond the |
| 69 | scope of this document. I suggest the Kernel-HOWTO document as a good general |
Mauro Carvalho Chehab | c54ad9a | 2020-02-17 17:11:52 +0100 | [diff] [blame] | 70 | reference on this topic. http://www.linuxdocs.org/HOWTOs/Kernel-HOWTO-4.html |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 71 | |
Mauro Carvalho Chehab | c54ad9a | 2020-02-17 17:11:52 +0100 | [diff] [blame] | 72 | However, to use the BeFS module, you must enable it at configure time:: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 73 | |
| 74 | cd /foo/bar/linux |
| 75 | make menuconfig (or xconfig) |
| 76 | |
| 77 | The BeFS module is not a standard part of the linux kernel, so you must first |
| 78 | enable support for experimental code under the "Code maturity level" menu. |
| 79 | |
| 80 | Then, under the "Filesystems" menu will be an option called "BeFS |
| 81 | filesystem (experimental)", or something like that. Enable that option |
| 82 | (it is fine to make it a module). |
| 83 | |
| 84 | Save your kernel configuration and then build your kernel. |
| 85 | |
| 86 | step 3. Install |
| 87 | |
| 88 | See the kernel howto <http://www.linux.com/howto/Kernel-HOWTO.html> for |
| 89 | instructions on this critical step. |
| 90 | |
Mauro Carvalho Chehab | c54ad9a | 2020-02-17 17:11:52 +0100 | [diff] [blame] | 91 | Using BFS |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 92 | ========= |
| 93 | To use the BeOS filesystem, use filesystem type 'befs'. |
| 94 | |
Mauro Carvalho Chehab | c54ad9a | 2020-02-17 17:11:52 +0100 | [diff] [blame] | 95 | ex:: |
| 96 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 97 | mount -t befs /dev/fd0 /beos |
| 98 | |
Mauro Carvalho Chehab | c54ad9a | 2020-02-17 17:11:52 +0100 | [diff] [blame] | 99 | Mount Options |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 100 | ============= |
Mauro Carvalho Chehab | c54ad9a | 2020-02-17 17:11:52 +0100 | [diff] [blame] | 101 | |
| 102 | ============= =========================================================== |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 103 | uid=nnn All files in the partition will be owned by user id nnn. |
| 104 | gid=nnn All files in the partition will be in group nnn. |
| 105 | iocharset=xxx Use xxx as the name of the NLS translation table. |
| 106 | debug The driver will output debugging information to the syslog. |
Mauro Carvalho Chehab | c54ad9a | 2020-02-17 17:11:52 +0100 | [diff] [blame] | 107 | ============= =========================================================== |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 108 | |
Mauro Carvalho Chehab | c54ad9a | 2020-02-17 17:11:52 +0100 | [diff] [blame] | 109 | How to Get Lastest Version |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 110 | ========================== |
| 111 | |
| 112 | The latest version is currently available at: |
| 113 | <http://befs-driver.sourceforge.net/> |
| 114 | |
Mauro Carvalho Chehab | c54ad9a | 2020-02-17 17:11:52 +0100 | [diff] [blame] | 115 | Any Known Bugs? |
| 116 | =============== |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 117 | As of Jan 20, 2002: |
Mauro Carvalho Chehab | c54ad9a | 2020-02-17 17:11:52 +0100 | [diff] [blame] | 118 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 119 | None |
| 120 | |
Mauro Carvalho Chehab | c54ad9a | 2020-02-17 17:11:52 +0100 | [diff] [blame] | 121 | Special Thanks |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 122 | ============== |
| 123 | Dominic Giampalo ... Writing "Practical file system design with Be filesystem" |
Mauro Carvalho Chehab | c54ad9a | 2020-02-17 17:11:52 +0100 | [diff] [blame] | 124 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 125 | Hiroyuki Yamada ... Testing LinuxPPC. |
| 126 | |
| 127 | |
| 128 | |