[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lustre-cvs
Subject:    [lustre-cvs] b_devel: lustre/lvfs fsfilt_ext3.c
From:       youfeng <youfeng () moraine ! clusterfs ! com>
Date:       2003-09-30 6:08:04
[Download RAW message or body]

Update of /cvsroot/lustre/lustre/lvfs
In directory moraine.clusterfs.com:/tmp/cvs-serv22844/lvfs

Modified Files:
      Tag: b_devel
	fsfilt_ext3.c 
Log Message:
b 1585 Support immutable attributes to prevent accidental file deletion from the archives


Index: fsfilt_ext3.c
===================================================================
RCS file: /cvsroot/lustre/lustre/lvfs/Attic/fsfilt_ext3.c,v
retrieving revision 1.1.6.4
retrieving revision 1.1.6.5
diff -u -w -b -B -p -r1.1.6.4 -r1.1.6.5
--- fsfilt_ext3.c	25 Sep 2003 05:47:11 -0000	1.1.6.4
+++ fsfilt_ext3.c	30 Sep 2003 06:07:54 -0000	1.1.6.5
@@ -312,6 +312,20 @@ static int fsfilt_ext3_setattr(struct de
         return rc;
 }
 
+static int fsfilt_ext3_iocontrol(struct inode * inode, struct file *file,
+                                 unsigned int cmd, unsigned long arg)
+{
+        int rc = 0;
+        ENTRY;
+        
+        if (inode->i_fop->ioctl)
+                rc = inode->i_fop->ioctl(inode, file, cmd, arg);
+        else
+                RETURN(-ENOTTY);
+        
+        RETURN(rc);
+}
+
 static int fsfilt_ext3_set_md(struct inode *inode, void *handle,
                               void *lmm, int lmm_size)
 {
@@ -653,6 +667,7 @@ static struct fsfilt_operations fsfilt_e
         fs_brw_start:           fsfilt_ext3_brw_start,
         fs_commit:              fsfilt_ext3_commit,
         fs_setattr:             fsfilt_ext3_setattr,
+        fs_iocontrol:           fsfilt_ext3_iocontrol,
         fs_set_md:              fsfilt_ext3_set_md,
         fs_get_md:              fsfilt_ext3_get_md,
         fs_readpage:            fsfilt_ext3_readpage,

_______________________________________________
Lustre-cvs mailing list
Lustre-cvs@lists.clusterfs.com
https://lists.clusterfs.com/mailman/listinfo/lustre-cvs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic