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 317386 Details for
Bug 454872
[NetApp 4.8 bug] online resize of filesystem does not work
[?]
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]
wrapper for lower level revalidate_disk routines
1-wrapper-for-lower-level-revalidate-disk-routines.patch (text/plain), 1.83 KB, created by
Jeff Moyer
on 2008-09-22 17:36:19 UTC
(
hide
)
Description:
wrapper for lower level revalidate_disk routines
Filename:
MIME Type:
Creator:
Jeff Moyer
Created:
2008-09-22 17:36:19 UTC
Size:
1.83 KB
patch
obsolete
>Wrapper for lower-level revalidate_disk routines. > >This is a wrapper for the lower-level revalidate_disk call-backs such >as sd_revalidate_disk(). It allows us to perform pre and post >operations when calling them. > >We will use this wrapper in a later patch to adjust block device sizes >after an online resize (a _post_ operation). > >diff -up linux-2.6.9/fs/block_dev.c.orig linux-2.6.9/fs/block_dev.c >--- linux-2.6.9/fs/block_dev.c.orig 2008-09-02 17:08:36.387333102 -0400 >+++ linux-2.6.9/fs/block_dev.c 2008-09-22 11:23:34.515735843 -0400 >@@ -511,6 +511,27 @@ struct block_device *open_by_devnum(dev_ > > EXPORT_SYMBOL(open_by_devnum); > >+/** >+ * revalidate_disk - wrapper for lower-level driver's revalidate_disk >+ * call-back >+ * >+ * @disk: struct gendisk to be revalidated >+ * >+ * This routine is a wrapper for lower-level driver's revalidate_disk >+ * call-backs. It is used to do common pre and post operations needed >+ * for all revalidate_disk operations. >+ */ >+int revalidate_disk(struct gendisk *disk) >+{ >+ int ret = 0; >+ >+ if (disk->fops->revalidate_disk) >+ ret = disk->fops->revalidate_disk(disk); >+ >+ return ret; >+} >+EXPORT_SYMBOL(revalidate_disk); >+ > /* > * This routine checks whether a removable media has been changed, > * and invalidates all buffer-cache-entries in that case. This >diff -up linux-2.6.9/include/linux/fs.h.orig linux-2.6.9/include/linux/fs.h >--- linux-2.6.9/include/linux/fs.h.orig 2008-09-02 17:08:41.254332835 -0400 >+++ linux-2.6.9/include/linux/fs.h 2008-09-22 11:23:34.536730084 -0400 >@@ -1373,6 +1373,7 @@ extern int fs_may_remount_ro(struct supe > */ > #define bio_data_dir(bio) ((bio)->bi_rw & 1) > >+extern int revalidate_disk(struct gendisk *); > extern int check_disk_change(struct block_device *); > extern int invalidate_inodes(struct super_block *); > extern int __invalidate_device(struct block_device *, int);
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 454872
: 317386 |
317387
|
317388
|
317389
|
317390
|
317391