Page MenuHomeFreeBSD

D9628.id25262.diff
No OneTemporary

D9628.id25262.diff

Index: sys/fs/devfs/devfs_vnops.c
===================================================================
--- sys/fs/devfs/devfs_vnops.c
+++ sys/fs/devfs/devfs_vnops.c
@@ -679,25 +679,6 @@
static int
devfs_fsync(struct vop_fsync_args *ap)
{
- int error;
- struct bufobj *bo;
- struct devfs_dirent *de;
-
- if (!vn_isdisk(ap->a_vp, &error)) {
- bo = &ap->a_vp->v_bufobj;
- de = ap->a_vp->v_data;
- if (error == ENXIO && bo->bo_dirty.bv_cnt > 0) {
- printf("Device %s went missing before all of the data "
- "could be written to it; expect data loss.\n",
- de->de_dirent->d_name);
-
- error = vop_stdfsync(ap);
- if (bo->bo_dirty.bv_cnt != 0 || error != 0)
- panic("devfs_fsync: vop_stdfsync failed.");
- }
-
- return (0);
- }
return (vop_stdfsync(ap));
}

File Metadata

Mime Type
text/plain
Expires
Sat, Dec 21, 2:07 PM (18 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15542060
Default Alt Text
D9628.id25262.diff (784 B)

Event Timeline