lkml.org 
[lkml]   [1996]   [Nov]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: syslog spiral death
: No it doesn't!  Linux's fsync() only falls back on doing a
: whole-device sync if it is used on a file whose filesystem doesn't
: provide its own specific fsync code.

From a random kernel source:

asmlinkage int sys_fsync(unsigned int fd)
{
struct file * file;
struct inode * inode;

if (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode))
return -EBADF;
if (!file->f_op || !file->f_op->fsync)
return -EINVAL;
if (file->f_op->fsync(inode,file))
return -EIO;
return 0;
}

\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.055 / U:0.624 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site