Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 315289 Details for
Bug 460327
GFS2: fsck complains about ondisk status 2 in pass 5
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch to fix the problem
bz460327.patch (text/plain), 1.15 KB, created by
Robert Peterson
on 2008-08-28 19:42:24 UTC
(
hide
)
Description:
Patch to fix the problem
Filename:
MIME Type:
Creator:
Robert Peterson
Created:
2008-08-28 19:42:24 UTC
Size:
1.15 KB
patch
obsolete
> gfs2/fsck/pass5.c | 14 ++++++++++++-- > 1 files changed, 12 insertions(+), 2 deletions(-) > >diff --git a/gfs2/fsck/pass5.c b/gfs2/fsck/pass5.c >index bc4b859..030a82c 100644 >--- a/gfs2/fsck/pass5.c >+++ b/gfs2/fsck/pass5.c >@@ -88,8 +88,18 @@ int check_block_status(struct gfs2_sbd *sbp, char *buffer, unsigned int buflen, > > block_status = convert_mark(&q, count); > >- if (rg_status != block_status) { >- const char *blockstatus[] = {"Free", "Data", "Invalid", "inode"}; >+ /* If one node opens a file and another node deletes it, we >+ may be left with a block that appears to be "unlinked" in >+ the bitmap, but nothing links to it. This is a valid case >+ and should be cleaned up by the file system eventually. >+ So we ignore it. */ >+ if (rg_status == GFS2_BLKST_UNLINKED && >+ block_status == GFS2_BLKST_FREE) { >+ log_warn("Unlinked block found at block %" >+ PRIu64" (0x%" PRIx64 "), left unchanged.\n", >+ block, block); >+ } else if (rg_status != block_status) { >+ const char *blockstatus[] = {"Free", "Data", "Unlinked", "inode"}; > > log_err("Ondisk and fsck bitmaps differ at" > " block %"PRIu64" (0x%" PRIx64 ") \n", block, block);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 460327
: 315289