€•iAŒ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”Œ6/translations/zh_CN/filesystems/ocfs2-online-filecheck”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)”}”(hhh]”hŒChinese (Traditional)”…””}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ6/translations/zh_TW/filesystems/ocfs2-online-filecheck”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒItalian”…””}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ6/translations/it_IT/filesystems/ocfs2-online-filecheck”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒJapanese”…””}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ6/translations/ja_JP/filesystems/ocfs2-online-filecheck”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒKorean”…””}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ6/translations/ko_KR/filesystems/ocfs2-online-filecheck”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒPortuguese (Brazilian)”…””}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ6/translations/pt_BR/filesystems/ocfs2-online-filecheck”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒSpanish”…””}”hh–sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ6/translations/sp_SP/filesystems/ocfs2-online-filecheck”Œ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³ŒP/var/lib/git/docbuild/linux/Documentation/filesystems/ocfs2-online-filecheck.rst”h´KubhŒsection”“”)”}”(hhh]”(hŒtitle”“”)”}”(hŒ%OCFS2 file system - online file check”h]”hŒ%OCFS2 file system - online file check”…””}”(hhÏh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhhÊh²hh³hÇh´KubhŒ paragraph”“”)”}”(hŒ/filecheck”h]”hŒ!/sys/fs/ocfs2//filecheck”…””}”hj”sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j’h³hÇh´K0hjeh²hubhÞ)”}”(hXwHere, indicates the name of OCFS2 volume device which has been already mounted. The file above would accept inode numbers. This could be used to communicate with kernel space, tell which file(inode number) will be checked or fixed. Currently, three operations are supported, which includes checking inode, fixing inode and setting the size of result record history.”h]”hXwHere, indicates the name of OCFS2 volume device which has been already mounted. The file above would accept inode numbers. This could be used to communicate with kernel space, tell which file(inode number) will be checked or fixed. Currently, three operations are supported, which includes checking inode, fixing inode and setting the size of result record history.”…””}”(hj¢h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K2hjeh²hubhŒenumerated_list”“”)”}”(hhh]”(hŒ list_item”“”)”}”(hXõIf you want to know what error exactly happened to before fixing, do:: # echo "" > /sys/fs/ocfs2//filecheck/check # cat /sys/fs/ocfs2//filecheck/check The output is like this:: INO DONE ERROR 39502 1 GENERATION lists the inode numbers. indicates whether the operation has been finished. says what kind of errors was found. For the detailed error numbers, please refer to the file linux/fs/ocfs2/filecheck.h. ”h]”(hÞ)”}”(hŒNIf you want to know what error exactly happened to before fixing, do::”h]”hŒMIf you want to know what error exactly happened to before fixing, do:”…””}”(hj»h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K8hj·ubj“)”}”(hŒh# echo "" > /sys/fs/ocfs2//filecheck/check # cat /sys/fs/ocfs2//filecheck/check”h]”hŒh# echo "" > /sys/fs/ocfs2//filecheck/check # cat /sys/fs/ocfs2//filecheck/check”…””}”hjÉsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j’h³hÇh´K:hj·ubhÞ)”}”(hŒThe output is like this::”h]”hŒThe output is like this:”…””}”(hj×h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K=hj·ubj“)”}”(hŒ@INO DONE ERROR 39502 1 GENERATION”h]”hŒ@INO DONE ERROR 39502 1 GENERATION”…””}”hjåsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j’h³hÇh´K?hj·ubhÞ)”}”(hŒÙ lists the inode numbers. indicates whether the operation has been finished. says what kind of errors was found. For the detailed error numbers, please refer to the file linux/fs/ocfs2/filecheck.h.”h]”hŒÙ lists the inode numbers. indicates whether the operation has been finished. says what kind of errors was found. For the detailed error numbers, please refer to the file linux/fs/ocfs2/filecheck.h.”…””}”(hjóh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KBhj·ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jµhj²h²hh³hÇh´Nubj¶)”}”(hX=If you determine to fix this inode, do:: # echo "" > /sys/fs/ocfs2//filecheck/fix # cat /sys/fs/ocfs2//filecheck/fix The output is like this:: INO DONE ERROR 39502 1 SUCCESS This time, the column indicates whether this fix is successful or not. ”h]”(hÞ)”}”(hŒ(If you determine to fix this inode, do::”h]”hŒ'If you determine to fix this inode, do:”…””}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KGhjubj“)”}”(hŒd# echo "" > /sys/fs/ocfs2//filecheck/fix # cat /sys/fs/ocfs2//filecheck/fix”h]”hŒd# echo "" > /sys/fs/ocfs2//filecheck/fix # cat /sys/fs/ocfs2//filecheck/fix”…””}”hjsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j’h³hÇh´KIhjubhÞ)”}”(hŒThe output is like this::”h]”hŒThe output is like this:”…””}”(hj'h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KLhjubj“)”}”(hŒ=INO DONE ERROR 39502 1 SUCCESS”h]”hŒ=INO DONE ERROR 39502 1 SUCCESS”…””}”hj5sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j’h³hÇh´KNhjubhÞ)”}”(hŒNThis time, the column indicates whether this fix is successful or not.”h]”hŒNThis time, the column indicates whether this fix is successful or not.”…””}”(hjCh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KQhjubeh}”(h]”h ]”h"]”h$]”h&]”uh1jµhj²h²hh³hÇh´Nubj¶)”}”(hŒìThe record cache is used to store the history of check/fix results. It's default size is 10, and can be adjust between the range of 10 ~ 100. You can adjust the size like this:: # echo "" > /sys/fs/ocfs2//filecheck/set ”h]”(hÞ)”}”(hŒ±The record cache is used to store the history of check/fix results. It's default size is 10, and can be adjust between the range of 10 ~ 100. You can adjust the size like this::”h]”hŒ²The record cache is used to store the history of check/fix results. It’s default size is 10, and can be adjust between the range of 10 ~ 100. You can adjust the size like this:”…””}”(hj[h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KShjWubj“)”}”(hŒ7# echo "" > /sys/fs/ocfs2//filecheck/set”h]”hŒ7# echo "" > /sys/fs/ocfs2//filecheck/set”…””}”hjisbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j’h³hÇh´KWhjWubeh}”(h]”h ]”h"]”h$]”h&]”uh1jµhj²h²hh³hÇh´Nubeh}”(h]”h ]”h"]”h$]”h&]”Œenumtype”Œarabic”Œprefix”hŒsuffix”Œ.”uh1j°hjeh²hh³hÇh´K8ubeh}”(h]”Œuser-interface”ah ]”h"]”Œuser interface”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´K)ubhÉ)”}”(hhh]”(hÎ)”}”(hŒ Fixing stuff”h]”hŒ Fixing stuff”…””}”(hj“h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjh²hh³hÇh´KZubhÞ)”}”(hX#On receiving the inode, the filesystem would read the inode and the file metadata. In case of errors, the filesystem would fix the errors and report the problems it fixed in the kernel log. As a precautionary measure, the inode must first be checked for errors before performing a final fix.”h]”hX#On receiving the inode, the filesystem would read the inode and the file metadata. In case of errors, the filesystem would fix the errors and report the problems it fixed in the kernel log. As a precautionary measure, the inode must first be checked for errors before performing a final fix.”…””}”(hj¡h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K[hjh²hubhÞ)”}”(hŒàThe inode and the result history will be maintained temporarily in a small linked list buffer which would contain the last (N) inodes fixed/checked, the detailed errors which were fixed/checked are printed in the kernel log.”h]”hŒàThe inode and the result history will be maintained temporarily in a small linked list buffer which would contain the last (N) inodes fixed/checked, the detailed errors which were fixed/checked are printed in the kernel log.”…””}”(hj¯h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K`hjh²hubeh}”(h]”Œ fixing-stuff”ah ]”h"]”Œ fixing stuff”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´KZubeh}”(h]”Œ#ocfs2-file-system-online-file-check”ah ]”h"]”Œ%ocfs2 file system - online file check”ah$]”h&]”uh1hÈhhh²hh³hÇh´Kubeh}”(h]”h ]”h"]”h$]”h&]”Œsource”hÇuh1hŒcurrent_source”NŒ current_line”NŒsettings”Œdocutils.frontend”ŒValues”“”)”}”(hÍNŒ generator”NŒ datestamp”NŒ source_link”NŒ source_url”NŒ toc_backlinks”Œentry”Œfootnote_backlinks”KŒ sectnum_xform”KŒstrip_comments”NŒstrip_elements_with_classes”NŒ strip_classes”NŒ report_level”KŒ halt_level”KŒexit_status_level”KŒdebug”NŒwarning_stream”NŒ traceback”ˆŒinput_encoding”Œ utf-8-sig”Œinput_encoding_error_handler”Œstrict”Œoutput_encoding”Œutf-8”Œoutput_encoding_error_handler”jðŒerror_encoding”Œutf-8”Œerror_encoding_error_handler”Œbackslashreplace”Œ language_code”Œen”Œrecord_dependencies”NŒconfig”NŒ id_prefix”hŒauto_id_prefix”Œid”Œ dump_settings”NŒdump_internals”NŒdump_transforms”NŒdump_pseudo_xml”NŒexpose_internals”NŒstrict_visitor”NŒ_disable_config”NŒ_source”hÇŒ _destination”NŒ _config_files”]”Œ7/var/lib/git/docbuild/linux/Documentation/docutils.conf”aŒfile_insertion_enabled”ˆŒ raw_enabled”KŒline_length_limit”M'Œpep_references”NŒ pep_base_url”Œhttps://peps.python.org/”Œpep_file_url_template”Œpep-%04d”Œrfc_references”NŒ rfc_base_url”Œ&https://datatracker.ietf.org/doc/html/”Œ tab_width”KŒtrim_footnote_reference_space”‰Œsyntax_highlight”Œlong”Œ smart_quotes”ˆŒsmartquotes_locales”]”Œcharacter_level_inline_markup”‰Œdoctitle_xform”‰Œ docinfo_xform”KŒsectsubtitle_xform”‰Œ image_loading”Œlink”Œembed_stylesheet”‰Œcloak_email_addresses”ˆŒsection_self_link”‰Œenv”NubŒreporter”NŒindirect_targets”]”Œsubstitution_defs”}”Œsubstitution_names”}”Œrefnames”}”Œrefids”}”Œnameids”}”(jÊjÇjjjbj_jjŠjÂj¿uŒ nametypes”}”(jʉj‰jb‰j‰j‰uh}”(jÇhÊjhíj_jjŠjej¿juŒ footnote_refs”}”Œ citation_refs”}”Œ autofootnotes”]”Œautofootnote_refs”]”Œsymbol_footnotes”]”Œsymbol_footnote_refs”]”Œ footnotes”]”Œ citations”]”Œautofootnote_start”KŒsymbol_footnote_start”KŒ id_counter”Œ collections”ŒCounter”“”}”…”R”Œparse_messages”]”Œtransform_messages”]”Œ transformer”NŒ include_log”]”Œ decoration”Nh²hub.