inode.c (f8314dc60ccba7e41f425048c4160dc7f63377d5) inode.c (8e18e2941c53416aa219708e7dcad21fb4bd6794)
1/* -*- linux-c -*- --------------------------------------------------------- *
2 *
3 * linux/fs/autofs/inode.c
4 *
5 * Copyright 1997-1998 Transmeta Corporation -- All Rights Reserved
6 *
7 * This file is part of the Linux kernel and is made available under
8 * the terms of the GNU General Public License, version 2, or at your

--- 227 unchanged lines hidden (view full) ---

236 n = ino - AUTOFS_FIRST_SYMLINK;
237 if ( n >= AUTOFS_MAX_SYMLINKS || !test_bit(n,sbi->symlink_bitmap)) {
238 printk("autofs: Looking for bad symlink inode %u\n", (unsigned int) ino);
239 return;
240 }
241
242 inode->i_op = &autofs_symlink_inode_operations;
243 sl = &sbi->symlink[n];
1/* -*- linux-c -*- --------------------------------------------------------- *
2 *
3 * linux/fs/autofs/inode.c
4 *
5 * Copyright 1997-1998 Transmeta Corporation -- All Rights Reserved
6 *
7 * This file is part of the Linux kernel and is made available under
8 * the terms of the GNU General Public License, version 2, or at your

--- 227 unchanged lines hidden (view full) ---

236 n = ino - AUTOFS_FIRST_SYMLINK;
237 if ( n >= AUTOFS_MAX_SYMLINKS || !test_bit(n,sbi->symlink_bitmap)) {
238 printk("autofs: Looking for bad symlink inode %u\n", (unsigned int) ino);
239 return;
240 }
241
242 inode->i_op = &autofs_symlink_inode_operations;
243 sl = &sbi->symlink[n];
244 inode->u.generic_ip = sl;
244 inode->i_private = sl;
245 inode->i_mode = S_IFLNK | S_IRWXUGO;
246 inode->i_mtime.tv_sec = inode->i_ctime.tv_sec = sl->mtime;
247 inode->i_mtime.tv_nsec = inode->i_ctime.tv_nsec = 0;
248 inode->i_size = sl->len;
249 inode->i_nlink = 1;
250 }
251}
245 inode->i_mode = S_IFLNK | S_IRWXUGO;
246 inode->i_mtime.tv_sec = inode->i_ctime.tv_sec = sl->mtime;
247 inode->i_mtime.tv_nsec = inode->i_ctime.tv_nsec = 0;
248 inode->i_size = sl->len;
249 inode->i_nlink = 1;
250 }
251}