lkml.org 
[lkml]   [2011]   [Sep]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH -V6 08/26] vfs: Add new file and directory create permission flags
Date
Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> wrote:

> -static inline int may_create(struct inode *dir, struct dentry *child)
> +static inline int may_create(struct inode *dir, struct dentry *child, int isdir)

Would it make sense to pass the proposed mode_t instead? That way you can
check for symlinks and other file types too if necessary later.

David


\
 
 \ /
  Last update: 2011-09-09 12:05    [from the cache]
©2003-2011 Jasper Spaans