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 |
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; |
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); |