bad_inode.c (18bb1db3e7607e4a997d50991a6f9fa5b0f8722c) | bad_inode.c (4acdaf27ebe2034c342f3be57ef49aed1ad885ef) |
---|---|
1/* 2 * linux/fs/bad_inode.c 3 * 4 * Copyright (C) 1997, Stephen Tweedie 5 * 6 * Provide stub functions for unreadable inodes 7 * 8 * Fabian Frederick : August 2003 - All file operations assigned to EIO --- 159 unchanged lines hidden (view full) --- 168 .get_unmapped_area = bad_file_get_unmapped_area, 169 .check_flags = bad_file_check_flags, 170 .flock = bad_file_flock, 171 .splice_write = bad_file_splice_write, 172 .splice_read = bad_file_splice_read, 173}; 174 175static int bad_inode_create (struct inode *dir, struct dentry *dentry, | 1/* 2 * linux/fs/bad_inode.c 3 * 4 * Copyright (C) 1997, Stephen Tweedie 5 * 6 * Provide stub functions for unreadable inodes 7 * 8 * Fabian Frederick : August 2003 - All file operations assigned to EIO --- 159 unchanged lines hidden (view full) --- 168 .get_unmapped_area = bad_file_get_unmapped_area, 169 .check_flags = bad_file_check_flags, 170 .flock = bad_file_flock, 171 .splice_write = bad_file_splice_write, 172 .splice_read = bad_file_splice_read, 173}; 174 175static int bad_inode_create (struct inode *dir, struct dentry *dentry, |
176 int mode, struct nameidata *nd) | 176 umode_t mode, struct nameidata *nd) |
177{ 178 return -EIO; 179} 180 181static struct dentry *bad_inode_lookup(struct inode *dir, 182 struct dentry *dentry, struct nameidata *nd) 183{ 184 return ERR_PTR(-EIO); --- 177 unchanged lines hidden --- | 177{ 178 return -EIO; 179} 180 181static struct dentry *bad_inode_lookup(struct inode *dir, 182 struct dentry *dentry, struct nameidata *nd) 183{ 184 return ERR_PTR(-EIO); --- 177 unchanged lines hidden --- |