Documentation/filesystems/bfs.txt

If you have any comment or update to the content, please contact the
original document maintainer directly.  However, if you have a problem
communicating in English you can also ask the Chinese maintainer for
help.  Contact the Chinese maintainer if this translation is outdated
or if there is a problem with the translation.


Chinese maintainer: 沈芳丽  <fairyshen@163.com>
---------------------------------------------------------------------
Documentation/filesystems/bfs.txt的中文翻译


如果想评论或更新本文的内容,请直接联系原文档的维护者。如果你使用英文
交流有困难的话,也可以向中文版维护者求助。如果本翻译更新不及时或者翻
译存在问题,请联系中文版维护者。


中文版维护者:沈芳丽  <fairyshen@163.com>
中文版翻译者:沈芳丽  <fairyshen@163.com>
中文版校译者:沈芳丽  <fairyshen@163.com>


以下为正文

BFS FILESYSTEM FOR LINUX
BFS FILESYSTEM Linux版
========================

 

The BFS filesystem is used by SCO UnixWare OS for the /stand slice, which 
usually contains the kernel image and a few other files required for the boot process.

BFS文件系统用于/台切片的SCOUnixWare OS,通常包含内核映像和引导过程

中所需的其他几个文件。

In order to access /stand partition under Linux you obviously need to know the 

partition number and the kernel must support UnixWare disk slices 

(CONFIG_UNIXWARE_DISKLABEL config option). However BFS support does 

not depend on having UnixWare disklabel support because one can also mount 

BFS filesystem via loopback:

为了访问/维持Linux下的分区,知道分区号是显然需要的,而且内核必须支持

UnixWare的磁盘片(CONFIG_UNIXWARE_DISKLABEL的配置选项)。然而,

BFS支持不依赖于UnixWare磁盘标签的支持,因为人们还可以通过安装回环BFS

文件系统来实现:

 

# losetup /dev/loop0 stand.img
# mount -t bfs /dev/loop0 /mnt/stand
 
where stand.img is a file containing the image of BFS filesystem. 
When you have finished using it and umounted you need to also 
deallocate /dev/loop0 device by:

stand.img是一个包含BFS文件系统形象的文件。使用完或者卸载改

文件后,还需释放/ dev/loop0设备:

 

# losetup -d /dev/loop0
 
You can simplify mounting by just typing:
简化安装只需键入:

 

# mount -t bfs -o loop stand.img /mnt/stand

 

this will allocate the first available loopback device (and load loop.o 
kernel module if necessary) automatically. If the loopback driver is 
not loaded automatically, make sure that you have compiled the 
module and that modprobe is functioning. Beware that umount will 
not deallocate /dev/loopN device if /etc/mtab file on your system is a 
symbolic link to /proc/mounts. You will need to do it manually using 
"-d" switch of losetup(8). Read losetup(8) manpage for more info.

这将自动完成分配弟一个可用的环回设备(如果必要的话,还会负载loop.o的

内核模块)。如果没有自动加载环回驱动程序,那么请确保您已编译模

块并且模探头是运作的。如果/ etc /下的 mtab文件在你的系统里是一个链

接到/proc/mount的符号,那么umount不会释放/ dev/ loopN设备。你需要

手动使用losetup(8)的“-D”开关。阅读losetup(8)联机帮助页来了解更多信息。

 

To create the BFS image under UnixWare you need to find out first which
slice contains it. The command prtvtoc(1M) is your friend:
你需要先找出哪些片包含BFS图像才能在UnixWare下创建它。prtvtoc(1M)命
令非常好用:
 
# prtvtoc /dev/rdsk/c0b0t0d0s0
 
(assuming your root disk is on target=0, lun=0, bus=0, controller=0). Then you 
look for the slice with tag "STAND", which is usually slice 10. With this information 
you can use dd(1) to create the BFS image:
(假设你根磁盘的 target=0, lun=0, bus=0, controller=0)。寻找通常为切片10的标
签“STAND”.有了这些信息,你可以用dd(1)来创建BFS图像。
 
 # umount /stand
 # dd if=/dev/rdsk/c0b0t0d0sa of=stand.img bs=512
 
Just in case, you can verify that you have done the right thing by checking the 
magic number:

就在这种情况下,你可以通过检查的幻数来验证你是否做对了:

 

# od -Ad -tx4 stand.img | more

 

The first 4 bytes should be 0x1badface.

前4个字节应该是0x1badface。

 

If you have any patches, questions or suggestions regarding this BFS 
implementation please contact the author:

如果您对该BFS方案有任何补充、疑问或建议,请与作者联系:

 

Tigran Aivazian <tigran@aivazian.fsnet.co.uk>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值