€•Â&Œsphinx.addnodes”Œdocument”“”)”}”(Œ rawsource”Œ”Œchildren”]”(Œ translations”Œ LanguagesNode”“”)”}”(hhh]”(hŒ pending_xref”“”)”}”(hhh]”Œdocutils.nodes”ŒText”“”ŒChinese (Simplified)”…””}”Œparent”hsbaŒ attributes”}”(Œids”]”Œclasses”]”Œnames”]”Œdupnames”]”Œbackrefs”]”Œ refdomain”Œstd”Œreftype”Œdoc”Œ reftarget”Œ#/translations/zh_CN/filesystems/bfs”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)”}”(hhh]”hŒChinese (Traditional)”…””}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ#/translations/zh_TW/filesystems/bfs”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒItalian”…””}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ#/translations/it_IT/filesystems/bfs”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒJapanese”…””}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ#/translations/ja_JP/filesystems/bfs”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒKorean”…””}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ#/translations/ko_KR/filesystems/bfs”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒSpanish”…””}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ#/translations/sp_SP/filesystems/bfs”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubeh}”(h]”h ]”h"]”h$]”h&]”Œcurrent_language”ŒEnglish”uh1h hhŒ _document”hŒsource”NŒline”NubhŒcomment”“”)”}”(hŒ SPDX-License-Identifier: GPL-2.0”h]”hŒ SPDX-License-Identifier: GPL-2.0”…””}”hh£sbah}”(h]”h ]”h"]”h$]”h&]”Œ xml:space”Œpreserve”uh1h¡hhhžhhŸŒ=/var/lib/git/docbuild/linux/Documentation/filesystems/bfs.rst”h KubhŒsection”“”)”}”(hhh]”(hŒtitle”“”)”}”(hŒBFS Filesystem for Linux”h]”hŒBFS Filesystem for Linux”…””}”(hh»hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¹hh¶hžhhŸh³h KubhŒ paragraph”“”)”}”(hŒ 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.”h]”hŒ 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.”…””}”(hhËhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸh³h Khh¶hžhubhÊ)”}”(hX=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::”h]”hX<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:”…””}”(hhÙhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸh³h K hh¶hžhubhŒ literal_block”“”)”}”(hŒC# losetup /dev/loop0 stand.img # mount -t bfs /dev/loop0 /mnt/stand”h]”hŒC# losetup /dev/loop0 stand.img # mount -t bfs /dev/loop0 /mnt/stand”…””}”hhésbah}”(h]”h ]”h"]”h$]”h&]”h±h²uh1hçhŸh³h Khh¶hžhubhÊ)”}”(hŒ¡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::”h]”hŒ 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:”…””}”(hh÷hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸh³h Khh¶hžhubhè)”}”(hŒ# losetup -d /dev/loop0”h]”hŒ# losetup -d /dev/loop0”…””}”hjsbah}”(h]”h ]”h"]”h$]”h&]”h±h²uh1hçhŸh³h Khh¶hžhubhÊ)”}”(hŒ*You can simplify mounting by just typing::”h]”hŒ)You can simplify mounting by just typing:”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸh³h Khh¶hžhubhè)”}”(hŒ+# mount -t bfs -o loop stand.img /mnt/stand”h]”hŒ+# mount -t bfs -o loop stand.img /mnt/stand”…””}”hj!sbah}”(h]”h ]”h"]”h$]”h&]”h±h²uh1hçhŸh³h Khh¶hžhubhÊ)”}”(hXÚ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.”h]”hXÞ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.”…””}”(hj/hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸh³h Khh¶hžhubhÊ)”}”(hŒƒTo create the BFS image under UnixWare you need to find out first which slice contains it. The command prtvtoc(1M) is your friend::”h]”hŒ‚To create the BFS image under UnixWare you need to find out first which slice contains it. The command prtvtoc(1M) is your friend:”…””}”(hj=hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸh³h K&hh¶hžhubhè)”}”(hŒ# prtvtoc /dev/rdsk/c0b0t0d0s0”h]”hŒ# prtvtoc /dev/rdsk/c0b0t0d0s0”…””}”hjKsbah}”(h]”h ]”h"]”h$]”h&]”h±h²uh1hçhŸh³h K)hh¶hžhubhÊ)”}”(hŒÐ(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::”h]”hŒÓ(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:”…””}”(hjYhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸh³h K+hh¶hžhubhè)”}”(hŒ@# umount /stand # dd if=/dev/rdsk/c0b0t0d0sa of=stand.img bs=512”h]”hŒ@# umount /stand # dd if=/dev/rdsk/c0b0t0d0sa of=stand.img bs=512”…””}”hjgsbah}”(h]”h ]”h"]”h$]”h&]”h±h²uh1hçhŸh³h K/hh¶hžhubhÊ)”}”(hŒ^Just in case, you can verify that you have done the right thing by checking the magic number::”h]”hŒ]Just in case, you can verify that you have done the right thing by checking the magic number:”…””}”(hjuhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸh³h K2hh¶hžhubhè)”}”(hŒ# od -Ad -tx4 stand.img | more”h]”hŒ# od -Ad -tx4 stand.img | more”…””}”hjƒsbah}”(h]”h ]”h"]”h$]”h&]”h±h²uh1hçhŸh³h K5hh¶hžhubhÊ)”}”(hŒ'The first 4 bytes should be 0x1badface.”h]”hŒ'The first 4 bytes should be 0x1badface.”…””}”(hj‘hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸh³h K7hh¶hžhubhÊ)”}”(hŒnIf you have any patches, questions or suggestions regarding this BFS implementation please contact the author:”h]”hŒnIf you have any patches, questions or suggestions regarding this BFS implementation please contact the author:”…””}”(hjŸhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸh³h K9hh¶hžhubhÊ)”}”(hŒ+Tigran Aivazian ”h]”(hŒTigran Aivazian <”…””}”(hj­hžhhŸNh NubhŒ reference”“”)”}”(hŒaivazian.tigran@gmail.com”h]”hŒaivazian.tigran@gmail.com”…””}”(hj·hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”Œ mailto:aivazian.tigran@gmail.com”uh1jµhj­ubhŒ>”…””}”(hj­hžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸh³h K