The Samba-Bugzilla – Attachment 1269 Details for
Bug 2792
VFS shadow_copy: panic in sys_telldir()
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Hook seekdir(), telldir() and rewinddir()
vfs_shadow_copy_bugs.patch (text/plain), 2.13 KB, created by
core@road-star.jp
on 2005-06-12 21:53:15 UTC
(
hide
)
Description:
Hook seekdir(), telldir() and rewinddir()
Filename:
MIME Type:
Creator:
core@road-star.jp
Created:
2005-06-12 21:53:15 UTC
Size:
2.13 KB
patch
obsolete
>*** source/modules/vfs_shadow_copy.c.orig Sat Feb 26 02:59:34 2005 >--- source/modules/vfs_shadow_copy.c Mon Jun 13 01:56:54 2005 >*************** >*** 195,207 **** > return 0; > } > > /* VFS operations structure */ > > static vfs_op_tuple shadow_copy_ops[] = { > {SMB_VFS_OP(shadow_copy_opendir), SMB_VFS_OP_OPENDIR, SMB_VFS_LAYER_TRANSPARENT}, > {SMB_VFS_OP(shadow_copy_readdir), SMB_VFS_OP_READDIR, SMB_VFS_LAYER_TRANSPARENT}, >! {SMB_VFS_OP(shadow_copy_closedir), SMB_VFS_OP_CLOSEDIR, SMB_VFS_LAYER_TRANSPARENT}, >! > {SMB_VFS_OP(shadow_copy_get_shadow_copy_data), SMB_VFS_OP_GET_SHADOW_COPY_DATA,SMB_VFS_LAYER_OPAQUE}, > > {SMB_VFS_OP(NULL), SMB_VFS_OP_NOOP, SMB_VFS_LAYER_NOOP} >--- 195,235 ---- > return 0; > } > >+ >+ static void shadow_copy_seekdir(struct vfs_handle_struct *handle, struct connection_struct *conn, DIR *_dirp, long offset) >+ { >+ shadow_copy_Dir *dirp = (shadow_copy_Dir *)_dirp; >+ >+ if (offset < dirp->num) { >+ dirp->pos = offset ; >+ } >+ } >+ >+ >+ static long shadow_copy_telldir(struct vfs_handle_struct *handle, struct connection_struct *conn, DIR *_dirp) >+ { >+ shadow_copy_Dir *dirp = (shadow_copy_Dir *)_dirp; >+ >+ return( dirp->pos ) ; >+ } >+ >+ >+ static void shadow_copy_rewinddir(struct vfs_handle_struct *handle, struct connection_struct *conn, DIR *_dirp) >+ { >+ shadow_copy_Dir *dirp = (shadow_copy_Dir *)_dirp; >+ >+ dirp->pos = 0 ; >+ } >+ > /* VFS operations structure */ > > static vfs_op_tuple shadow_copy_ops[] = { > {SMB_VFS_OP(shadow_copy_opendir), SMB_VFS_OP_OPENDIR, SMB_VFS_LAYER_TRANSPARENT}, > {SMB_VFS_OP(shadow_copy_readdir), SMB_VFS_OP_READDIR, SMB_VFS_LAYER_TRANSPARENT}, >! {SMB_VFS_OP(shadow_copy_seekdir), SMB_VFS_OP_SEEKDIR, SMB_VFS_LAYER_TRANSPARENT}, >! {SMB_VFS_OP(shadow_copy_telldir), SMB_VFS_OP_TELLDIR, SMB_VFS_LAYER_TRANSPARENT}, >! {SMB_VFS_OP(shadow_copy_rewinddir), SMB_VFS_OP_REWINDDIR, SMB_VFS_LAYER_TRANSPARENT}, >! {SMB_VFS_OP(shadow_copy_closedir), SMB_VFS_OP_CLOSEDIR, SMB_VFS_LAYER_TRANSPARENT}, > {SMB_VFS_OP(shadow_copy_get_shadow_copy_data), SMB_VFS_OP_GET_SHADOW_COPY_DATA,SMB_VFS_LAYER_OPAQUE}, > > {SMB_VFS_OP(NULL), SMB_VFS_OP_NOOP, SMB_VFS_LAYER_NOOP}
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 Raw
Actions:
View
Attachments on
bug 2792
: 1269