The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/fs/qnx4/truncate.c

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /* 
    2  * QNX4 file system, Linux implementation.
    3  * 
    4  * Version : 0.1
    5  * 
    6  * Using parts of the xiafs filesystem.
    7  * 
    8  * History :
    9  * 
   10  * 30-06-1998 by Frank DENIS : ugly filler.
   11  */
   12 
   13 #include <linux/config.h>
   14 #include <linux/types.h>
   15 #include <linux/errno.h>
   16 #include <linux/slab.h>
   17 #include <linux/qnx4_fs.h>
   18 #include <linux/fs.h>
   19 #include <linux/locks.h>
   20 #include <asm/uaccess.h>
   21 
   22 #ifdef CONFIG_QNX4FS_RW
   23 
   24 void qnx4_truncate(struct inode *inode)
   25 {
   26         if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) ||
   27               S_ISLNK(inode->i_mode))) {
   28                 return;
   29         }
   30         if (!(S_ISDIR(inode->i_mode))) {
   31                 /* TODO */
   32         }
   33         QNX4DEBUG(("qnx4: qnx4_truncate called\n"));
   34         inode->i_mtime = inode->i_ctime = CURRENT_TIME;
   35         mark_inode_dirty(inode);
   36 }
   37 
   38 #endif

Cache object: beb2a43d8d120193b71880a31d192a61


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.