Home
last modified time | relevance | path

Searched refs:S_IFDIR (Results 1 – 25 of 120) sorted by relevance

12345

/linux-2.4.37.9/include/linux/
Dstat.h17 #define S_IFDIR 0040000 macro
26 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
/linux-2.4.37.9/fs/xfs/
Dxfs_dir2.c158 ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_dir2_isempty()
186 ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_dir2_init()
211 ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_dir2_createname()
264 ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_dir2_lookup()
322 ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_dir2_removename()
372 ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_dir2_getdents()
425 ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_dir2_replace()
476 ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_dir2_canenter()
Dxfs_dir.c219 ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_dir_isempty()
241 ASSERT((dir->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_dir_init()
260 ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_dir_createname()
324 ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_dir_canenter()
369 ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_dir_removename()
412 ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_dir_lookup()
458 ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_dir_getdents()
502 ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_dir_replace()
548 if ((INT_GET(dp->di_core.di_mode, ARCH_CONVERT) & S_IFMT) != S_IFDIR) { in xfs_dir_shortform_validate_ondisk()
Dxfs_rename.c329 if ((src_ip->i_d.di_mode & S_IFMT) == S_IFDIR) { in xfs_rename()
343 src_is_directory = ((src_ip->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_rename()
451 if ((target_ip->i_d.di_mode & S_IFMT) == S_IFDIR) { in xfs_rename()
/linux-2.4.37.9/fs/hfs/
Dinode.c27 #define HFS_VALID_MODE_BITS (S_IFREG | S_IFDIR | S_IRWXUGO)
386 inode->i_mode = S_IRWXUGO | S_IFDIR; in hfs_cap_ifill()
392 inode->i_mode = S_IRUGO | S_IXUGO | S_IFDIR; in hfs_cap_ifill()
398 inode->i_mode = S_IRUGO | S_IXUGO | S_IFDIR; in hfs_cap_ifill()
445 inode->i_mode = S_IRWXUGO | S_IFDIR; in hfs_dbl_ifill()
490 inode->i_mode = S_IRWXUGO | S_IFDIR; in hfs_nat_ifill()
/linux-2.4.37.9/fs/nfsd/
Dvfs.c104 err = fh_verify(rqstp, fhp, S_IFDIR, MAY_EXEC); in nfsd_lookup()
857 err = fh_verify(rqstp, fhp, S_IFDIR, MAY_CREATE); in nfsd_create()
916 case S_IFDIR: in nfsd_create()
982 err = fh_verify(rqstp, fhp, S_IFDIR, MAY_CREATE); in nfsd_create_v3()
1158 err = fh_verify(rqstp, fhp, S_IFDIR, MAY_CREATE); in nfsd_symlink()
1212 err = fh_verify(rqstp, ffhp, S_IFDIR, MAY_CREATE); in nfsd_link()
1215 err = fh_verify(rqstp, tfhp, -S_IFDIR, MAY_NOP); in nfsd_link()
1273 err = fh_verify(rqstp, ffhp, S_IFDIR, MAY_REMOVE); in nfsd_rename()
1276 err = fh_verify(rqstp, tfhp, S_IFDIR, MAY_CREATE); in nfsd_rename()
1364 err = fh_verify(rqstp, fhp, S_IFDIR, MAY_REMOVE); in nfsd_unlink()
[all …]
Dnfs3proc.c37 S_IFDIR, /* NF3DIR */
256 nfserr = fh_verify(rqstp, dirfhp, S_IFDIR, MAY_CREATE); in nfsd3_proc_create()
295 &argp->attrs, S_IFDIR, 0, &resp->fh); in nfsd3_proc_mkdir()
372 nfserr = nfsd_unlink(rqstp, &resp->fh, -S_IFDIR, argp->name, argp->len); in nfsd3_proc_remove()
391 nfserr = nfsd_unlink(rqstp, &resp->fh, S_IFDIR, argp->name, argp->len); in nfsd3_proc_rmdir()
Dnfsproc.c207 nfserr = fh_verify(rqstp, dirfhp, S_IFDIR, MAY_EXEC); in nfsd_proc_create()
357 nfserr = nfsd_unlink(rqstp, &argp->fh, -S_IFDIR, argp->name, argp->len); in nfsd_proc_remove()
445 &argp->attrs, S_IFDIR, 0, &resp->fh); in nfsd_proc_mkdir()
461 nfserr = nfsd_unlink(rqstp, &argp->fh, S_IFDIR, argp->name, argp->len); in nfsd_proc_rmdir()
Dnfsfh.c682 if (type == S_IFDIR) in fh_verify()
684 else if ((inode->i_mode & S_IFMT) == S_IFDIR) in fh_verify()
691 error = (type == -S_IFDIR)? nfserr_isdir : nfserr_notdir; in fh_verify()
/linux-2.4.37.9/fs/ramfs/
Dinode.c122 case S_IFDIR: in ramfs_get_inode()
157 return ramfs_mknod(dir, dentry, mode | S_IFDIR, 0); in ramfs_mkdir()
314 inode = ramfs_get_inode(sb, S_IFDIR | 0755, 0); in ramfs_read_super()
/linux-2.4.37.9/arch/ia64/sn/io/hwgfs/
Dramfs.c103 case S_IFDIR: in hwgfs_get_inode()
133 return hwgfs_mknod(dir, dentry, mode | S_IFDIR, 0); in hwgfs_mkdir()
290 inode = hwgfs_get_inode(sb, S_IFDIR | 0755, 0); in hwgfs_read_super()
/linux-2.4.37.9/drivers/md/
Dlvm-fs.c91 lvm_proc_dir = create_proc_entry(LVM_DIR, S_IFDIR, &proc_root); in lvm_init_fs()
94 create_proc_entry(LVM_VG_SUBDIR, S_IFDIR, in lvm_init_fs()
129 vg_ptr->vg_dir_pde = create_proc_entry(vg_ptr->vg_name, S_IFDIR, in lvm_fs_create_vg()
139 create_proc_entry(LVM_LV_SUBDIR, S_IFDIR, vg_ptr->vg_dir_pde); in lvm_fs_create_vg()
142 create_proc_entry(LVM_PV_SUBDIR, S_IFDIR, vg_ptr->vg_dir_pde); in lvm_fs_create_vg()
/linux-2.4.37.9/fs/autofs/
Dinode.c212 inode->i_mode = S_IFDIR | S_IRUGO | S_IXUGO; in autofs_read_inode()
219 inode->i_mode = S_IFDIR | S_IRUGO | S_IXUGO | S_IWUSR; in autofs_read_inode()
/linux-2.4.37.9/fs/hpfs/
Dinode.c165 i->i_mode |= S_IFDIR; in hpfs_read_inode()
215 | (S_ISDIR(i->i_mode) ? S_IFDIR : S_IFREG)) in hpfs_write_inode_ea()
217 | (S_ISDIR(i->i_mode) ? S_IFDIR : S_IFREG))) || i->i_hpfs_ea_mode) { in hpfs_write_inode_ea()
/linux-2.4.37.9/fs/smbfs/
Dinode.c339 mnt->dir_mode = (value & S_IRWXUGO) | S_IFDIR; in parse_options()
511 mnt->dir_mode = (oldmnt->dir_mode & S_IRWXUGO) | S_IFDIR; in smb_read_super()
519 S_IROTH | S_IXOTH | S_IFDIR; in smb_read_super()
587 unsigned int mask = (S_IFREG | S_IFDIR | S_IRWXUGO); in smb_notify_change()
/linux-2.4.37.9/fs/affs/
Dinode.c113 inode->i_mode |= S_IFDIR; in affs_read_inode()
115 inode->i_mode = S_IRUGO | S_IXUGO | S_IWUSR | S_IFDIR; in affs_read_inode()
128 inode->i_mode |= S_IFDIR; in affs_read_inode()
/linux-2.4.37.9/fs/proc/
Droot.c130 mode: S_IFDIR | S_IRUGO | S_IXUGO,
/linux-2.4.37.9/fs/ext3/
Dnamei.c225 [S_IFDIR >> S_SHIFT] EXT3_FT_DIR,
518 inode = ext3_new_inode (handle, dir, S_IFDIR); in ext3_mkdir()
541 ext3_set_de_type(dir->i_sb, de, S_IFDIR); in ext3_mkdir()
548 ext3_set_de_type(dir->i_sb, de, S_IFDIR); in ext3_mkdir()
553 inode->i_mode = S_IFDIR | mode; in ext3_mkdir()
/linux-2.4.37.9/drivers/hotplug/
Dpci_hotplug_core.c157 case S_IFDIR: in pcihpfs_get_inode()
181 return pcihpfs_mknod (dir, dentry, mode | S_IFDIR, 0); in pcihpfs_mkdir()
376 inode = pcihpfs_get_inode(sb, S_IFDIR | 0755, 0); in pcihpfs_read_super()
501 case S_IFDIR: in pcihpfs_create_by_name()
1087 S_IFDIR | S_IXUGO | S_IRUGO, in fs_add_slot()
/linux-2.4.37.9/lib/
Dfirmware_class.c343 fw_priv->proc_dir = create_proc_entry(device, 0644 | S_IFDIR, proc_dir); in fw_setup_class_device()
545 proc_dir = create_proc_entry("driver/firmware", 0755 | S_IFDIR, NULL); in firmware_class_init()
/linux-2.4.37.9/net/khttpd/
Dsysctl.c57 int sysctl_khttpd_permforbid = S_IFDIR | S_ISVTX | S_IXOTH | S_IXGRP | S_IXUSR;
/linux-2.4.37.9/fs/jffs/
Djffs_proc.c83 S_IFDIR | S_IRUGO | S_IXUGO, jffs_proc_root))) { in jffs_register_jffs_proc_dir()
/linux-2.4.37.9/drivers/media/video/
Dvideodev.c418 video_proc_entry = create_proc_entry("video", S_IFDIR, &proc_root); in videodev_proc_create()
426 video_dev_proc_entry = create_proc_entry("dev", S_IFDIR, video_proc_entry); in videodev_proc_create()
/linux-2.4.37.9/drivers/usb/
Dinode.c148 inode->i_mode = sb->u.usbdevfs_sb.busmode | S_IFDIR; in new_bus_inode()
523 inode->i_mode = S_IFDIR | S_IRUGO | S_IXUGO; in usbdevfs_read_inode()
585 inode->i_mode = s->u.usbdevfs_sb.busmode | S_IFDIR; in usbdevfs_remount()
/linux-2.4.37.9/fs/freevxfs/
Dvxfs_inode.c211 ret |= S_IFDIR; in vxfs_transmod()

12345