Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 375338 Details for
Bug 508204
app-emulation/vmware-modules-279.2 with kernel 3.14 - .../work/vmblock-only/linux/file.c:240:4: error: unknown field ‘readdir’ specified in initializer
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
279-vmblock-3.11.patch
279-vmblock-3.11.patch (text/plain), 2.32 KB, created by
Billy DeVincentis
on 2014-04-20 03:08:40 UTC
(
hide
)
Description:
279-vmblock-3.11.patch
Filename:
MIME Type:
Creator:
Billy DeVincentis
Created:
2014-04-20 03:08:40 UTC
Size:
2.32 KB
patch
obsolete
>--- a/vmblock-only/linux/file.c >+++ b/vmblock-only/linux/file.c >@@ -38,46 +38,6 @@ typedef u64 inode_num_t; > typedef ino_t inode_num_t; > #endif > >-/* Specifically for our filldir_t callback */ >-typedef struct FilldirInfo { >- filldir_t filldir; >- void *dirent; >-} FilldirInfo; >- >- >-/* >- *---------------------------------------------------------------------------- >- * >- * Filldir -- >- * >- * Callback function for readdir that we use in place of the one provided. >- * This allows us to specify that each dentry is a symlink, but pass through >- * everything else to the original filldir function. >- * >- * Results: >- * Original filldir's return value. >- * >- * Side effects: >- * Directory information gets copied to user's buffer. >- * >- *---------------------------------------------------------------------------- >- */ >- >-static int >-Filldir(void *buf, // IN: Dirent buffer passed from FileOpReaddir >- const char *name, // IN: Dirent name >- int namelen, // IN: len of dirent's name >- loff_t offset, // IN: Offset >- inode_num_t ino, // IN: Inode number of dirent >- unsigned int d_type) // IN: Type of file >-{ >- FilldirInfo *info = buf; >- >- /* Specify DT_LNK regardless */ >- return info->filldir(info->dirent, name, namelen, offset, ino, DT_LNK); >-} >- >- > /* File operations */ > > /* >@@ -166,11 +126,10 @@ FileOpOpen(struct inode *inode, // IN > > static int > FileOpReaddir(struct file *file, // IN >- void *dirent, // IN >- filldir_t filldir) // IN >+ struct dir_context *ctx) // IN > { > int ret; >- FilldirInfo info; >+ > struct file *actualFile; > > if (!file) { >@@ -184,12 +143,10 @@ FileOpReaddir(struct file *file, // IN > return -EINVAL; > } > >- info.filldir = filldir; >- info.dirent = dirent; >- >- actualFile->f_pos = file->f_pos; >- ret = vfs_readdir(actualFile, Filldir, &info); >- file->f_pos = actualFile->f_pos; >+ /* Ricky Wong Yung Fei: >+ * Manipulation of pos is now handled internally by iterate_dir(). >+ */ >+ ret = iterate_dir(actualFile, ctx); > > return ret; > } >@@ -237,7 +194,7 @@ FileOpRelease(struct inode *inode, // IN > > > struct file_operations RootFileOps = { >- .readdir = FileOpReaddir, >+ .iterate = FileOpReaddir, > .open = FileOpOpen, > .release = FileOpRelease, > };
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 508204
:
375336
| 375338 |
375340
|
375360
|
375598
|
379644