Print this page
OS-4043 tmpfs should support gigabyte sizes
OS-4044 tmpfs should support "mode" option
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Patrick Mooney <patrick.mooney@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/fs/tmp.h
          +++ new/usr/src/uts/common/sys/fs/tmp.h
↓ open down ↓ 14 lines elided ↑ open up ↑
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright 2007 Sun Microsystems, Inc.
  23   23   * All rights reserved.  Use is subject to license terms.
  24   24   */
       25 +/*
       26 + * Copyright 2015 Joyent, Inc.
       27 + */
  25   28  
  26   29  #ifndef _SYS_FS_TMP_H
  27   30  #define _SYS_FS_TMP_H
  28   31  
  29      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  30      -
  31   32  #ifdef  __cplusplus
  32   33  extern "C" {
  33   34  #endif
  34   35  
  35   36  /*
  36   37   * tmpfs per-mount data structure.
  37   38   *
  38   39   * All fields are protected by tm_contents.
  39   40   * File renames on a particular file system are protected tm_renamelck.
  40   41   */
↓ open down ↓ 60 lines elided ↑ open up ↑
 101  102          enum dr_op, struct cred *);
 102  103  extern  void    tdirinit(struct tmpnode *, struct tmpnode *);
 103  104  extern  void    tdirtrunc(struct tmpnode *);
 104  105  extern  void    *tmp_memalloc(size_t, int);
 105  106  extern  void    tmp_memfree(void *, size_t);
 106  107  extern  int     tmp_resv(struct tmount *, struct tmpnode *, size_t, int);
 107  108  extern  int     tmp_taccess(void *, int, struct cred *);
 108  109  extern  int     tmp_sticky_remove_access(struct tmpnode *, struct tmpnode *,
 109  110          struct cred *);
 110  111  extern  int     tmp_convnum(char *, pgcnt_t *);
      112 +extern  int     tmp_convmode(char *, mode_t *);
 111  113  extern  int     tdirenter(struct tmount *, struct tmpnode *, char *,
 112  114          enum de_op, struct tmpnode *, struct tmpnode *, struct vattr *,
 113  115          struct tmpnode **, struct cred *, caller_context_t *);
 114  116  
 115  117  #define TMP_MUSTHAVE    0x01
 116  118  
 117  119  #ifdef  __cplusplus
 118  120  }
 119  121  #endif
 120  122  
 121  123  #endif  /* _SYS_FS_TMP_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX