balls-cvs-act Mailing List for Balls
Status: Pre-Alpha
Brought to you by:
quinnharris
You can subscribe to this list here.
| 2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(41) |
Aug
(9) |
Sep
|
Oct
(78) |
Nov
|
Dec
|
|---|
|
From: Quinn H. <qui...@us...> - 2001-10-25 00:17:32
|
Update of /cvsroot/balls/linux/include/linux
In directory usw-pr-cvs1:/tmp/cvs-serv4671/include/linux
Modified Files:
balls.h balls_bits.h
Log Message:
Index: balls.h
===================================================================
RCS file: /cvsroot/balls/linux/include/linux/balls.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** balls.h 2001/10/24 23:36:37 1.7
--- balls.h 2001/10/25 00:17:29 1.8
***************
*** 1,5 ****
#include "balls_bits.h"
! struct task_struct *balls_daemon;
/* The following is used for debuging.
--- 1,5 ----
#include "balls_bits.h"
! extern struct task_struct *balls_daemon;
/* The following is used for debuging.
***************
*** 7,14 ****
* That code will later be moved directly into the kernel
*/
! void (*__queue_put)(struct dentry *, struct dentry *);
! void (*__balls_create)(struct inode *, struct dentry *);
! void (*__balls_trunc)(struct inode *, struct dentry *);
! void (*__balls_close)(struct file *filp);
static inline void balls_vfs_create(struct inode *dir, struct dentry *dentry)
--- 7,14 ----
* That code will later be moved directly into the kernel
*/
! extern void (*__queue_put)(struct dentry *, struct dentry *);
! extern void (*__balls_create)(struct inode *, struct dentry *);
! extern void (*__balls_trunc)(struct inode *, struct dentry *);
! extern void (*__balls_close)(struct file *filp);
static inline void balls_vfs_create(struct inode *dir, struct dentry *dentry)
***************
*** 35,40 ****
unsigned char op)
{
! __queue_put(((((op >> 2) & 0x03) << 30) & 0xFFFFFFFF) & src,
! ((((op >> 0) & 0x03) << 30) & 0xFFFFFFFF) & src);
}
--- 35,40 ----
unsigned char op)
{
! __queue_put((struct dentry *)(((((op >> 2) & 0x03) << 30) & 0xFFFFFFFF) & (int)src),
! (struct dentry *)(((((op >> 0) & 0x03) << 30) & 0xFFFFFFFF) & (int)src));
}
***************
*** 46,57 ****
if (balls_daemon) {
/* Test if this directory is not excuded !!! */
! queue_put(0xC0000000, dentry, op);
}
}
! static inline void balls_notify(struct inode *dir,
! struct dentry *dentry,
! struct dentry *source,
! char op)
{
/* For debuging only, remove later */
--- 46,57 ----
if (balls_daemon) {
/* Test if this directory is not excuded !!! */
! queue_put((struct dentry *)0xC0000000, dentry, op);
}
}
! static inline void balls_notify_src(struct inode *dir,
! struct dentry *dentry,
! struct dentry *source,
! char op)
{
/* For debuging only, remove later */
Index: balls_bits.h
===================================================================
RCS file: /cvsroot/balls/linux/include/linux/balls_bits.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** balls_bits.h 2001/10/20 06:13:50 1.6
--- balls_bits.h 2001/10/25 00:17:29 1.7
***************
*** 5,8 ****
--- 5,10 ----
#define VFS_RMDIR 0x02
#define VFS_UNLINK 0x03
+ #define SB_MOUNT 0x04
+ #define SB_UMOUNT 0x05
/* Source and Destination */
|
|
From: Quinn H. <qui...@us...> - 2001-10-25 00:17:32
|
Update of /cvsroot/balls/linux/kernel In directory usw-pr-cvs1:/tmp/cvs-serv4671/kernel Modified Files: ksyms.c Log Message: Index: ksyms.c =================================================================== RCS file: /cvsroot/balls/linux/kernel/ksyms.c,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -r1.15 -r1.16 *** ksyms.c 2001/10/24 23:33:12 1.15 --- ksyms.c 2001/10/25 00:17:29 1.16 *************** *** 282,287 **** --- 282,298 ---- /* for balls fs */ + #ifdef CONFIG_BALLS_FS + struct task_struct *balls_daemon; + void (*__queue_put)(struct dentry *, struct dentry *); + void (*__balls_create)(struct inode *, struct dentry *); + void (*__balls_trunc)(struct inode *, struct dentry *); + void (*__balls_close)(struct file *filp); + EXPORT_SYMBOL(balls_daemon); EXPORT_SYMBOL(__queue_put); + EXPORT_SYMBOL(__balls_create); + EXPORT_SYMBOL(__balls_trunc); + EXPORT_SYMBOL(__balls_close); + #endif /* device registration */ |
|
From: Quinn H. <qui...@us...> - 2001-10-25 00:03:35
|
Update of /cvsroot/balls/linux/fs In directory usw-pr-cvs1:/tmp/cvs-serv2091 Modified Files: namei.c Added Files: super.c Log Message: Index: namei.c =================================================================== RCS file: /cvsroot/balls/linux/fs/namei.c,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -r1.13 -r1.14 *** namei.c 2001/10/24 23:33:11 1.13 --- namei.c 2001/10/25 00:03:31 1.14 *************** *** 1642,1646 **** inode_dir_notify(dir, DN_CREATE); #ifdef CONFIG_BALLS_FS ! balls_notify(dir, new_dentry, old_dentry, VFS_LINK); #endif } --- 1642,1646 ---- inode_dir_notify(dir, DN_CREATE); #ifdef CONFIG_BALLS_FS ! balls_notify_src(dir, new_dentry, old_dentry, VFS_LINK); #endif } *************** *** 1868,1872 **** } #ifdef CONFIG_BALLS_FS ! balls_notify(new_dir, new_dentry, old_dentry, VFS_RENAME); #endif } --- 1868,1872 ---- } #ifdef CONFIG_BALLS_FS ! balls_notify_src(new_dir, new_dentry, old_dentry, VFS_RENAME); #endif } |
|
From: Quinn H. <qui...@us...> - 2001-10-24 23:36:39
|
Update of /cvsroot/balls/linux/include/linux
In directory usw-pr-cvs1:/tmp/cvs-serv29666/include/linux
Modified Files:
balls.h
Log Message:
Index: balls.h
===================================================================
RCS file: /cvsroot/balls/linux/include/linux/balls.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** balls.h 2001/10/20 06:13:50 1.6
--- balls.h 2001/10/24 23:36:37 1.7
***************
*** 1,16 ****
! /* Assign an ID to each VFS operation */
! #define VFS_CREATE 0x00
! #define VFS_MKNOD 0x01
! #define VFS_MKDIR 0x02
! #define VFS_RMDIR 0x03
! #define VFS_UNLINK 0x04
! #define VFS_SYMLINK 0x05
! #define VFS_LINK 0x06
! #define VFS_RENAME 0x07
! #define VFS_COPY 0x08
! /* Nothing higher than 0x0F */
struct task_struct *balls_daemon;
void (*__queue_put)(struct dentry *, struct dentry *);
static inline void queue_put(struct dentry *src,
--- 1,33 ----
! #include "balls_bits.h"
struct task_struct *balls_daemon;
+
+ /* The following is used for debuging.
+ * This allows puting the code for the function in a module.
+ * That code will later be moved directly into the kernel
+ */
void (*__queue_put)(struct dentry *, struct dentry *);
+ void (*__balls_create)(struct inode *, struct dentry *);
+ void (*__balls_trunc)(struct inode *, struct dentry *);
+ void (*__balls_close)(struct file *filp);
+
+ static inline void balls_vfs_create(struct inode *dir, struct dentry *dentry)
+ {
+ if (balls_daemon)
+ __balls_create(dir, dentry);
+ }
+
+ static inline void balls_open_namei_trunc(struct inode *dir, struct dentry *dentry)
+ {
+ if (balls_daemon)
+ __balls_trunc(dir, dentry);
+ }
+
+ static inline void balls_filp_close(struct file *filp)
+ {
+ if (balls_daemon)
+ __balls_close(filp);
+ }
+
static inline void queue_put(struct dentry *src,
***************
*** 27,32 ****
{
/* For debuging only, remove later */
! if (balls_daemon)
! {
/* Test if this directory is not excuded !!! */
queue_put(0xC0000000, dentry, op);
--- 44,48 ----
{
/* For debuging only, remove later */
! if (balls_daemon) {
/* Test if this directory is not excuded !!! */
queue_put(0xC0000000, dentry, op);
***************
*** 40,45 ****
{
/* For debuging only, remove later */
! if (balls_daemon)
! {
/* Test if this directory is not excuded !!! */
queue_put(source, dentry, op);
--- 56,60 ----
{
/* For debuging only, remove later */
! if (balls_daemon) {
/* Test if this directory is not excuded !!! */
queue_put(source, dentry, op);
|
|
From: Quinn H. <qui...@us...> - 2001-10-24 23:33:14
|
Update of /cvsroot/balls/linux/kernel In directory usw-pr-cvs1:/tmp/cvs-serv28956/kernel Modified Files: ksyms.c Log Message: Index: ksyms.c =================================================================== RCS file: /cvsroot/balls/linux/kernel/ksyms.c,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -r1.14 -r1.15 *** ksyms.c 2001/10/20 06:13:50 1.14 --- ksyms.c 2001/10/24 23:33:12 1.15 *************** *** 64,68 **** extern void *sys_call_table; ! extern int sys_tz; extern int request_dma(unsigned int dmanr, char * deviceID); extern void free_dma(unsigned int dmanr); --- 64,68 ---- extern void *sys_call_table; ! extern struct timezone sys_tz; extern int request_dma(unsigned int dmanr, char * deviceID); extern void free_dma(unsigned int dmanr); *************** *** 228,231 **** --- 228,232 ---- EXPORT_SYMBOL(posix_block_lock); EXPORT_SYMBOL(posix_unblock_lock); + EXPORT_SYMBOL(posix_locks_deadlock); EXPORT_SYMBOL(locks_mandatory_area); EXPORT_SYMBOL(dput); |
|
From: Quinn H. <qui...@us...> - 2001-10-24 23:33:14
|
Update of /cvsroot/balls/linux/fs
In directory usw-pr-cvs1:/tmp/cvs-serv28956/fs
Modified Files:
namei.c open.c
Log Message:
Index: namei.c
===================================================================
RCS file: /cvsroot/balls/linux/fs/namei.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -r1.12 -r1.13
*** namei.c 2001/10/20 06:13:50 1.12
--- namei.c 2001/10/24 23:33:11 1.13
***************
*** 652,659 ****
{
if (path_walk(name, nd))
! return 0;
! if (!nd->dentry->d_inode) {
struct nameidata nd_root;
nd_root.last_type = LAST_ROOT;
nd_root.flags = nd->flags;
--- 652,663 ----
{
if (path_walk(name, nd))
! return 0; /* something went wrong... */
! if (!nd->dentry->d_inode || S_ISDIR(nd->dentry->d_inode->i_mode)) {
struct nameidata nd_root;
+ /*
+ * NAME was not found in alternate root or it's a directory. Try to find
+ * it in the normal root:
+ */
nd_root.last_type = LAST_ROOT;
nd_root.flags = nd->flags;
Index: open.c
===================================================================
RCS file: /cvsroot/balls/linux/fs/open.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -r1.13 -r1.14
*** open.c 2001/10/20 06:13:50 1.13
--- open.c 2001/10/24 23:33:11 1.14
***************
*** 110,114 ****
inode = nd.dentry->d_inode;
! error = -EACCES;
if (!S_ISREG(inode->i_mode))
goto dput_and_out;
--- 110,119 ----
inode = nd.dentry->d_inode;
! /* For directories it's -EISDIR, for other non-regulars - -EINVAL */
! error = -EISDIR;
! if (S_ISDIR(inode->i_mode))
! goto dput_and_out;
!
! error = -EINVAL;
if (!S_ISREG(inode->i_mode))
goto dput_and_out;
***************
*** 152,159 ****
asmlinkage long sys_truncate(const char * path, unsigned long length)
{
! return do_sys_truncate(path, length);
}
! static inline long do_sys_ftruncate(unsigned int fd, loff_t length)
{
struct inode * inode;
--- 157,165 ----
asmlinkage long sys_truncate(const char * path, unsigned long length)
{
! /* on 32-bit boxen it will cut the range 2^31--2^32-1 off */
! return do_sys_truncate(path, (long)length);
}
! static inline long do_sys_ftruncate(unsigned int fd, loff_t length, int small)
{
struct inode * inode;
***************
*** 169,179 ****
if (!file)
goto out;
dentry = file->f_dentry;
inode = dentry->d_inode;
! error = -EACCES;
if (!S_ISREG(inode->i_mode) || !(file->f_mode & FMODE_WRITE))
goto out_putf;
error = -EPERM;
! if (IS_IMMUTABLE(inode) || IS_APPEND(inode))
goto out_putf;
--- 175,196 ----
if (!file)
goto out;
+
+ /* explicitly opened as large or we are on 64-bit box */
+ if (file->f_flags & O_LARGEFILE)
+ small = 0;
+
dentry = file->f_dentry;
inode = dentry->d_inode;
! error = -EINVAL;
if (!S_ISREG(inode->i_mode) || !(file->f_mode & FMODE_WRITE))
goto out_putf;
+
+ error = -EINVAL;
+ /* Cannot ftruncate over 2^31 bytes without large file support */
+ if (small && length > MAX_NON_LFS)
+ goto out_putf;
+
error = -EPERM;
! if (IS_APPEND(inode))
goto out_putf;
***************
*** 189,193 ****
asmlinkage long sys_ftruncate(unsigned int fd, unsigned long length)
{
! return do_sys_ftruncate(fd, length);
}
--- 206,210 ----
asmlinkage long sys_ftruncate(unsigned int fd, unsigned long length)
{
! return do_sys_ftruncate(fd, length, 1);
}
***************
*** 201,205 ****
asmlinkage long sys_ftruncate64(unsigned int fd, loff_t length)
{
! return do_sys_ftruncate(fd, length);
}
#endif
--- 218,222 ----
asmlinkage long sys_ftruncate64(unsigned int fd, loff_t length)
{
! return do_sys_ftruncate(fd, length, 0);
}
#endif
***************
*** 513,517 ****
error = -ENOENT;
if (!(inode = dentry->d_inode)) {
! printk("chown_common: NULL inode\n");
goto out;
}
--- 530,534 ----
error = -ENOENT;
if (!(inode = dentry->d_inode)) {
! printk(KERN_ERR "chown_common: NULL inode\n");
goto out;
}
***************
*** 750,754 ****
/* Sanity check */
if (files->fd[fd] != NULL) {
! printk("get_unused_fd: slot %d not NULL!\n", fd);
files->fd[fd] = NULL;
}
--- 767,771 ----
/* Sanity check */
if (files->fd[fd] != NULL) {
! printk(KERN_WARNING "get_unused_fd: slot %d not NULL!\n", fd);
files->fd[fd] = NULL;
}
***************
*** 813,817 ****
if (!file_count(filp)) {
! printk("VFS: Close: file count is 0\n");
return 0;
}
--- 830,834 ----
if (!file_count(filp)) {
! printk(KERN_ERR "VFS: Close: file count is 0\n");
return 0;
}
|
|
From: Quinn H. <qui...@us...> - 2001-10-24 23:33:14
|
Update of /cvsroot/balls/linux/include/linux In directory usw-pr-cvs1:/tmp/cvs-serv28956/include/linux Modified Files: fs.h Log Message: Index: fs.h =================================================================== RCS file: /cvsroot/balls/linux/include/linux/fs.h,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -r1.13 -r1.14 *** fs.h 2001/10/20 06:13:50 1.13 --- fs.h 2001/10/24 23:33:11 1.14 *************** *** 216,220 **** BH_New, /* 1 if the buffer is new and not yet written out */ BH_Async, /* 1 if the buffer is under end_buffer_io_async I/O */ ! BH_Wait_IO, /* 1 if we should throttle on this buffer */ BH_PrivateStart,/* not a state bit, but the first bit available --- 216,221 ---- BH_New, /* 1 if the buffer is new and not yet written out */ BH_Async, /* 1 if the buffer is under end_buffer_io_async I/O */ ! BH_Wait_IO, /* 1 if we should write out this buffer */ ! BH_launder, /* 1 if we should throttle on this buffer */ BH_PrivateStart,/* not a state bit, but the first bit available *************** *** 606,609 **** --- 607,611 ---- extern void posix_block_lock(struct file_lock *, struct file_lock *); extern void posix_unblock_lock(struct file_lock *); + extern int posix_locks_deadlock(struct file_lock *, struct file_lock *); extern int __get_lease(struct inode *inode, unsigned int flags); extern time_t lease_get_mtime(struct inode *); |
|
From: Quinn H. <qui...@us...> - 2001-10-20 06:13:52
|
Update of /cvsroot/balls/linux/kernel In directory usw-pr-cvs1:/tmp/cvs-serv10420/linux/kernel Modified Files: ksyms.c Log Message: Index: ksyms.c =================================================================== RCS file: /cvsroot/balls/linux/kernel/ksyms.c,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -r1.13 -r1.14 *** ksyms.c 2001/10/20 05:11:48 1.13 --- ksyms.c 2001/10/20 06:13:50 1.14 *************** *** 49,52 **** --- 49,56 ---- #include <asm/checksum.h> + #ifdef CONFIG_BALLS_FS + #include <linux/balls.h> + #endif + #if defined(CONFIG_PROC_FS) #include <linux/proc_fs.h> *************** *** 275,278 **** --- 279,286 ---- EXPORT_SYMBOL(filemap_fdatawait); EXPORT_SYMBOL(lock_page); + + /* for balls fs */ + EXPORT_SYMBOL(balls_daemon); + EXPORT_SYMBOL(__queue_put); /* device registration */ |
|
From: Quinn H. <qui...@us...> - 2001-10-20 06:13:52
|
Update of /cvsroot/balls/linux/include/linux In directory usw-pr-cvs1:/tmp/cvs-serv10420/linux/include/linux Modified Files: dcache.h fs.h Added Files: balls.h balls_bits.h Log Message: Index: dcache.h =================================================================== RCS file: /cvsroot/balls/linux/include/linux/dcache.h,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -r1.11 -r1.12 *** dcache.h 2001/10/20 05:11:48 1.11 --- dcache.h 2001/10/20 06:13:50 1.12 *************** *** 124,127 **** --- 124,128 ---- */ #define DCACHE_REFERENCED 0x0008 /* Recently used, don't discard. */ + #define DCACHE_CREATE 0x0010 /* dentry created by posible copy op, for balls fs */ extern spinlock_t dcache_lock; Index: fs.h =================================================================== RCS file: /cvsroot/balls/linux/include/linux/fs.h,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -r1.12 -r1.13 *** fs.h 2001/10/20 05:11:48 1.12 --- fs.h 2001/10/20 06:13:50 1.13 *************** *** 134,137 **** --- 134,138 ---- #define S_DEAD 32 /* removed, but still open directory */ #define S_NOQUOTA 64 /* Inode is not counted to quota */ + #define S_EXCLUDED 128 /* excluded from logging for balls */ /* |
|
From: Quinn H. <qui...@us...> - 2001-10-20 06:13:52
|
Update of /cvsroot/balls/linux/fs
In directory usw-pr-cvs1:/tmp/cvs-serv10420/linux/fs
Modified Files:
Config.in dcache.c namei.c open.c
Removed Files:
super.c
Log Message:
Index: Config.in
===================================================================
RCS file: /cvsroot/balls/linux/fs/Config.in,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -r1.10 -r1.11
*** Config.in 2001/10/20 05:11:47 1.10
--- Config.in 2001/10/20 06:13:50 1.11
***************
*** 12,15 ****
--- 12,17 ----
dep_mbool ' Have reiserfs do extra internal checking' CONFIG_REISERFS_CHECK $CONFIG_REISERFS_FS $CONFIG_EXPERIMENTAL
+ bool 'Balls FS' CONFIG_BALLS_FS $CONFIG_EXPERIMENTAL
+
dep_tristate 'ADFS file system support' CONFIG_ADFS_FS $CONFIG_EXPERIMENTAL
dep_mbool ' ADFS write support (DANGEROUS)' CONFIG_ADFS_FS_RW $CONFIG_ADFS_FS $CONFIG_EXPERIMENTAL
Index: dcache.c
===================================================================
RCS file: /cvsroot/balls/linux/fs/dcache.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -r1.12 -r1.13
*** dcache.c 2001/10/20 05:11:47 1.12
--- dcache.c 2001/10/20 06:13:50 1.13
***************
*** 855,865 ****
--- 855,870 ----
* then no longer matches the actual (corrupted) string of the target.
* The hash value has to match the hash queue that the dentry is on..
+ *
+ * Changed to perserve old dentry name for BALLS FS.
*/
static inline void switch_names(struct dentry * dentry, struct dentry * target)
{
+ unsigned char buffer[DNAME_INLINE_LEN];
const unsigned char *old_name, *new_name;
check_lock();
+ memcpy(buffer, dentry->d_iname, DNAME_INLINE_LEN); /* Preserve old name */
memcpy(dentry->d_iname, target->d_iname, DNAME_INLINE_LEN);
+ memcpy(target->d_iname, buffer, DNAME_INLINE_LEN); /* Preserve old name */
old_name = target->d_name.name;
new_name = dentry->d_name.name;
Index: namei.c
===================================================================
RCS file: /cvsroot/balls/linux/fs/namei.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** namei.c 2001/10/20 05:11:47 1.11
--- namei.c 2001/10/20 06:13:50 1.12
***************
*** 15,18 ****
--- 15,19 ----
*/
+ #include <linux/config.h> /* For Balls FS */
#include <linux/init.h>
#include <linux/slab.h>
***************
*** 24,27 ****
--- 25,32 ----
#include <linux/personality.h>
+ #ifdef CONFIG_BALLS_FS
+ #include <linux/balls.h>
+ #endif
+
#include <asm/namei.h>
#include <asm/uaccess.h>
***************
*** 947,952 ****
exit_lock:
up(&dir->i_zombie);
! if (!error)
inode_dir_notify(dir, DN_CREATE);
return error;
}
--- 952,961 ----
exit_lock:
up(&dir->i_zombie);
! if (!error) {
inode_dir_notify(dir, DN_CREATE);
+ #ifdef CONFIG_BALLS_FS
+ balls_vfs_create(dir, dentry);
+ #endif
+ }
return error;
}
***************
*** 1128,1131 ****
--- 1137,1144 ----
if (error)
goto exit;
+
+ #ifdef CONFIG_BALLS_FS
+ balls_open_namei_trunc(dir, dentry);
+ #endif
} else
if (flag & FMODE_WRITE)
***************
*** 1226,1231 ****
exit_lock:
up(&dir->i_zombie);
! if (!error)
inode_dir_notify(dir, DN_CREATE);
return error;
}
--- 1239,1248 ----
exit_lock:
up(&dir->i_zombie);
! if (!error) {
inode_dir_notify(dir, DN_CREATE);
+ #ifdef CONFIG_BALLS_FS
+ balls_notify(dir, dentry, VFS_MKNOD);
+ #endif
+ }
return error;
}
***************
*** 1297,1302 ****
exit_lock:
up(&dir->i_zombie);
! if (!error)
inode_dir_notify(dir, DN_CREATE);
return error;
}
--- 1314,1323 ----
exit_lock:
up(&dir->i_zombie);
! if (!error) {
inode_dir_notify(dir, DN_CREATE);
+ #ifdef CONFIG_BALLS_FS
+ balls_notify(dir, dentry, VFS_MKDIR);
+ #endif
+ }
return error;
}
***************
*** 1390,1393 ****
--- 1411,1417 ----
if (!error) {
inode_dir_notify(dir, DN_DELETE);
+ #ifdef CONFIG_BALLS_FS
+ balls_notify(dir, dentry, VFS_RMDIR);
+ #endif
d_delete(dentry);
}
***************
*** 1461,1466 ****
}
up(&dir->i_zombie);
! if (!error)
inode_dir_notify(dir, DN_DELETE);
return error;
}
--- 1485,1494 ----
}
up(&dir->i_zombie);
! if (!error) {
inode_dir_notify(dir, DN_DELETE);
+ #ifdef CONFIG_BALLS_FS
+ balls_notify(dir, dentry, VFS_UNLINK);
+ #endif
+ }
return error;
}
***************
*** 1529,1534 ****
exit_lock:
up(&dir->i_zombie);
! if (!error)
inode_dir_notify(dir, DN_CREATE);
return error;
}
--- 1557,1566 ----
exit_lock:
up(&dir->i_zombie);
! if (!error) {
inode_dir_notify(dir, DN_CREATE);
+ #ifdef CONFIG_BALLS_FS
+ balls_notify(dir, dentry, VFS_SYMLINK);
+ #endif
+ }
return error;
}
***************
*** 1603,1608 ****
exit_lock:
up(&dir->i_zombie);
! if (!error)
inode_dir_notify(dir, DN_CREATE);
return error;
}
--- 1635,1644 ----
exit_lock:
up(&dir->i_zombie);
! if (!error) {
inode_dir_notify(dir, DN_CREATE);
+ #ifdef CONFIG_BALLS_FS
+ balls_notify(dir, new_dentry, old_dentry, VFS_LINK);
+ #endif
+ }
return error;
}
***************
*** 1827,1830 ****
--- 1863,1869 ----
inode_dir_notify(new_dir, DN_CREATE);
}
+ #ifdef CONFIG_BALLS_FS
+ balls_notify(new_dir, new_dentry, old_dentry, VFS_RENAME);
+ #endif
}
return error;
Index: open.c
===================================================================
RCS file: /cvsroot/balls/linux/fs/open.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -r1.12 -r1.13
*** open.c 2001/10/20 05:11:47 1.12
--- open.c 2001/10/20 06:13:50 1.13
***************
*** 5,8 ****
--- 5,9 ----
*/
+ #include <linux/config.h> /* For Balls FS */
#include <linux/string.h>
#include <linux/mm.h>
***************
*** 17,20 ****
--- 18,25 ----
#include <linux/iobuf.h>
+ #ifdef CONFIG_BALLS_FS
+ #include <linux/balls.h>
+ #endif
+
#include <asm/uaccess.h>
***************
*** 819,822 ****
--- 824,832 ----
fcntl_dirnotify(0, filp, 0);
locks_remove_posix(filp, id);
+
+ #ifdef CONFIG_BALLS_FS
+ balls_filp_close(filp);
+ #endif
+
fput(filp);
return retval;
--- super.c DELETED ---
|
|
From: Quinn H. <qui...@us...> - 2001-10-20 05:11:50
|
Update of /cvsroot/balls/linux/kernel In directory usw-pr-cvs1:/tmp/cvs-serv4011/kernel Added Files: ksyms.c Log Message: |
|
From: Quinn H. <qui...@us...> - 2001-10-20 05:11:50
|
Update of /cvsroot/balls/linux/include/linux In directory usw-pr-cvs1:/tmp/cvs-serv4011/include/linux Added Files: dcache.h fs.h Log Message: |
|
From: Quinn H. <qui...@us...> - 2001-10-20 05:11:50
|
Update of /cvsroot/balls/linux/fs In directory usw-pr-cvs1:/tmp/cvs-serv4011/fs Added Files: Config.in dcache.c namei.c open.c super.c Log Message: |
|
From: Quinn H. <qui...@us...> - 2001-10-20 04:52:22
|
Update of /cvsroot/balls/linux/kernel
In directory usw-pr-cvs1:/tmp/cvs-serv1485/kernel
Removed Files:
Tag: linux-kernel
ksyms.c
Log Message:
--- ksyms.c DELETED ---
|
|
From: Quinn H. <qui...@us...> - 2001-10-20 04:52:21
|
Update of /cvsroot/balls/linux/include/linux
In directory usw-pr-cvs1:/tmp/cvs-serv1485/include/linux
Removed Files:
Tag: linux-kernel
dcache.h fs.h
Log Message:
--- dcache.h DELETED ---
--- fs.h DELETED ---
|
|
From: Quinn H. <qui...@us...> - 2001-10-20 04:52:21
|
Update of /cvsroot/balls/linux/fs
In directory usw-pr-cvs1:/tmp/cvs-serv1485/fs
Removed Files:
Tag: linux-kernel
Config.in dcache.c namei.c open.c super.c
Log Message:
--- Config.in DELETED ---
--- dcache.c DELETED ---
--- namei.c DELETED ---
--- open.c DELETED ---
--- super.c DELETED ---
|
|
From: Quinn H. <qui...@us...> - 2001-10-20 04:51:13
|
Update of /cvsroot/balls/linux/kernel In directory usw-pr-cvs1:/tmp/cvs-serv1291/linux/linux/kernel Removed Files: ksyms.c Log Message: --- ksyms.c DELETED --- |
|
From: Quinn H. <qui...@us...> - 2001-10-20 04:51:13
|
Update of /cvsroot/balls/linux/include/linux In directory usw-pr-cvs1:/tmp/cvs-serv1291/linux/linux/include/linux Removed Files: balls.h balls_bits.h dcache.h fs.h Log Message: --- balls.h DELETED --- --- balls_bits.h DELETED --- --- dcache.h DELETED --- --- fs.h DELETED --- |
|
From: Quinn H. <qui...@us...> - 2001-10-20 04:51:13
|
Update of /cvsroot/balls/linux/fs In directory usw-pr-cvs1:/tmp/cvs-serv1291/linux/linux/fs Removed Files: Config.in dcache.c namei.c open.c super.c Log Message: --- Config.in DELETED --- --- dcache.c DELETED --- --- namei.c DELETED --- --- open.c DELETED --- --- super.c DELETED --- |
|
From: Quinn H. <qui...@us...> - 2001-10-20 04:51:13
|
Update of /cvsroot/balls/linux/kernel In directory usw-pr-cvs1:/tmp/cvs-serv1291/linux/kernel Removed Files: ksyms.c Log Message: --- ksyms.c DELETED --- |
|
From: Quinn H. <qui...@us...> - 2001-10-20 04:51:13
|
Update of /cvsroot/balls/linux/include/linux In directory usw-pr-cvs1:/tmp/cvs-serv1291/linux/include/linux Removed Files: balls.h balls_bits.h dcache.h fs.h Log Message: --- balls.h DELETED --- --- balls_bits.h DELETED --- --- dcache.h DELETED --- --- fs.h DELETED --- |
|
From: Quinn H. <qui...@us...> - 2001-10-20 04:51:13
|
Update of /cvsroot/balls/linux/fs In directory usw-pr-cvs1:/tmp/cvs-serv1291/linux/fs Removed Files: Config.in dcache.c namei.c open.c super.c Log Message: --- Config.in DELETED --- --- dcache.c DELETED --- --- namei.c DELETED --- --- open.c DELETED --- --- super.c DELETED --- |
|
From: Quinn H. <qui...@us...> - 2001-10-20 04:41:36
|
Update of /cvsroot/balls/linux/kernel In directory usw-pr-cvs1:/tmp/cvs-serv32579/kernel Added Files: ksyms.c Log Message: |
|
From: Quinn H. <qui...@us...> - 2001-10-20 04:41:36
|
Update of /cvsroot/balls/linux/include/linux In directory usw-pr-cvs1:/tmp/cvs-serv32579/include/linux Added Files: balls.h balls_bits.h dcache.h fs.h Log Message: |
|
From: Quinn H. <qui...@us...> - 2001-10-20 04:41:36
|
Update of /cvsroot/balls/linux/fs In directory usw-pr-cvs1:/tmp/cvs-serv32579/fs Added Files: Config.in dcache.c namei.c open.c super.c Log Message: |