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 146017 Details for
Bug 223493
gfs_fsck runs slower than previous versions
[?]
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
223493.patch (text/plain), 1.57 KB, created by
Robert Peterson
on 2007-01-19 18:38:11 UTC
(
hide
)
Description:
Patch to fix the problem
Filename:
MIME Type:
Creator:
Robert Peterson
Created:
2007-01-19 18:38:11 UTC
Size:
1.57 KB
patch
obsolete
>Index: Makefile >=================================================================== >RCS file: /cvs/cluster/cluster/gfs/gfs_fsck/Makefile,v >retrieving revision 1.2.2.1 >diff -w -u -p -p -u -r1.2.2.1 Makefile >--- Makefile 15 Feb 2005 17:17:52 -0000 1.2.2.1 >+++ Makefile 19 Jan 2007 18:36:31 -0000 >@@ -25,7 +25,7 @@ sources = main.c initialize.c pass1.c pa > inode_hash.c bitmap.c lost_n_found.c inode.c link.c metawalk.c \ > eattr.c > >-CFLAGS+=-D_FILE_OFFSET_BITS=64 -DHELPER_PROGRAM -DGFS_RELEASE_NAME=\"${RELEASE}\" -Wall -g >+CFLAGS+=-D_FILE_OFFSET_BITS=64 -DHELPER_PROGRAM -DGFS_RELEASE_NAME=\"${RELEASE}\" -Wall -O2 > > all: gfs_fsck > >Index: util.c >=================================================================== >RCS file: /cvs/cluster/cluster/gfs/gfs_fsck/util.c,v >retrieving revision 1.1.2.5 >diff -w -u -p -p -u -r1.1.2.5 util.c >--- util.c 17 Nov 2006 16:15:39 -0000 1.1.2.5 >+++ util.c 19 Jan 2007 18:36:31 -0000 >@@ -318,15 +318,19 @@ struct di_info *search_list(osi_list_t * > /* doesn't think we hung. (This may take a long time). */ > void warm_fuzzy_stuff(uint64_t block) > { >+ static uint64_t one_percent = 0; > static struct timeval tv; > static uint32_t seconds = 0; > >+ if (!one_percent) >+ one_percent = last_fs_block / 100; >+ if (block - last_reported_block >= one_percent) { > last_reported_block = block; > gettimeofday(&tv, NULL); > if (!seconds) > seconds = tv.tv_sec; > if (tv.tv_sec - seconds) { >- uint64_t percent; >+ static uint64_t percent; > > seconds = tv.tv_sec; > if (last_fs_block) { >@@ -335,3 +339,4 @@ void warm_fuzzy_stuff(uint64_t 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 223493
: 146017