summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-06-24 18:55:42 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-06-24 18:55:42 +0000
commit75d32d9837d5e1f609f508c7cd76385ccaf082b8 (patch)
tree99f6eecf67f7612d02129cb7f8b28dd445f9aef3 /libdiskfs
parente71d6032ca4561ecdd2c776b3e27c5f5ec69d0e0 (diff)
(diskfs_validate_mode_change, diskfs_validate_owner_change,
diskfs_validate_group_change, diskfs_validate_author_change, diskfs_validate_flags_change, diskfs_validate_rdev_change): New decls.
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/diskfs.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/libdiskfs/diskfs.h b/libdiskfs/diskfs.h
index 9a23bc00..c97e4880 100644
--- a/libdiskfs/diskfs.h
+++ b/libdiskfs/diskfs.h
@@ -409,6 +409,30 @@ void diskfs_new_hardrefs (struct node *np);
the directory, then this routine should fail). */
int diskfs_dirempty (struct node *dp, struct protid *cred);
+/* The user may define this function. Return 0 if NP's mode can
+ be changed to MODE; otherwise return an error code. */
+error_t diskfs_validate_mode_change (struct node *np, mode_t mode);
+
+/* The user may define this function. Return 0 if NP's owner can be
+ changed to UID; otherwise return an error code. */
+error_t diskfs_validate_owner_change (struct node *np, uid_t uid);
+
+/* The user may define this function. Return 0 if NP's group can be
+ changed to GID; otherwise return an error code. */
+error_t diskfs_validate_group_change (struct node *np, gid_t gid);
+
+/* The user may define this function. Return 0 if NP's author can be
+ changed to AUTHOR; otherwise return an error code. */
+error_t diskfs_validate_author_change (struct node *np, uid_t author);
+
+/* The user may define this function. Return 0 if NP's flags can be
+ changed to FLAGS; otherwise return an error code. */
+error_t diskfs_validate_flags_change (struct node *np, int flags);
+
+/* The user may define this function. Return 0 if NP's rdev can be
+ changed to RDEV; otherwise return an error code. */
+error_t diskfs_validate_rdev_change (struct node *np, dev_t rdev);
+
/* The user must define this function. Sync the info in NP->dn_stat
and any associated format-specific information to disk. If WAIT is true,
then return only after the physicial media has been completely updated. */