/[hurd]/hurd/libdiskfs/dir-mkdir.c
ViewVC logotype

Diff of /hurd/libdiskfs/dir-mkdir.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.11 by miles, Fri Feb 14 01:16:28 1997 UTC revision 1.12 by roland, Fri Jan 4 02:35:25 2002 UTC
# Line 1  Line 1 
1  /* libdiskfs implementation of fs.defs: dir_mkdir  /* libdiskfs implementation of fs.defs: dir_mkdir
2     Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997 Free Software Foundation     Copyright (C) 1992,93,94,95,96,97,2002 Free Software Foundation, Inc.
3    
4     This program is free software; you can redistribute it and/or     This program is free software; you can redistribute it and/or
5     modify it under the terms of the GNU General Public License as     modify it under the terms of the GNU General Public License as
# Line 31  diskfs_S_dir_mkdir (struct protid *dircr Line 31  diskfs_S_dir_mkdir (struct protid *dircr
31    
32    if (!dircred)    if (!dircred)
33      return EOPNOTSUPP;      return EOPNOTSUPP;
34      
35    dnp = dircred->po->np;    dnp = dircred->po->np;
36    if (diskfs_check_readonly ())    if (diskfs_check_readonly ())
37      return EROFS;      return EROFS;
# Line 51  diskfs_S_dir_mkdir (struct protid *dircr Line 51  diskfs_S_dir_mkdir (struct protid *dircr
51        return error;        return error;
52      }      }
53    
54    mode &= ~(S_ISPARE | S_IFMT);    mode &= ~(S_ISPARE | S_IFMT | S_ITRANS);
55    mode |= S_IFDIR;    mode |= S_IFDIR;
56    
57    error = diskfs_create_node (dnp, name, mode, &np, dircred, ds);    error = diskfs_create_node (dnp, name, mode, &np, dircred, ds);

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26