summaryrefslogtreecommitdiff
path: root/libdiskfs/diskfs.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-06-11 21:38:25 +0000
committerRoland McGrath <roland@gnu.org>2002-06-11 21:38:25 +0000
commit5103e6259a44f4d5087284172c9c80608a2692df (patch)
treed9633947d09c00d256692b84f5f13bc0ecffc53e /libdiskfs/diskfs.h
parentc28173526810463042aa91a629834eea511cedf1 (diff)
2002-06-08 Roland McGrath <roland@frob.com>
* diskfs.h (struct node): Use io_statbuf_t instead of struct stat. (struct node): Use ino64_t for cache_id. (struct node): Use loff_t instead of off_t. (diskfs_grow, diskfs_truncate, diskfs_node_rdwr): Likewise. (diskfs_notice_filechange): Likewise. (diskfs_cached_lookup): Use ino64_t for CACHE_ID argument.
Diffstat (limited to 'libdiskfs/diskfs.h')
-rw-r--r--libdiskfs/diskfs.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/libdiskfs/diskfs.h b/libdiskfs/diskfs.h
index aaae96a5..c8c8b31a 100644
--- a/libdiskfs/diskfs.h
+++ b/libdiskfs/diskfs.h
@@ -75,7 +75,7 @@ struct node
struct disknode *dn;
- struct stat dn_stat;
+ io_statbuf_t dn_stat;
/* Stat has been modified if one of the following four fields
is nonzero. Also, if one of the dn_set_?time fields is nonzero,
@@ -104,9 +104,9 @@ struct node
struct modreq *filemod_reqs;
- off_t allocsize;
+ loff_t allocsize;
- int cache_id;
+ ino64_t cache_id;
int author_tracks_uid;
};
@@ -399,13 +399,13 @@ error_t diskfs_set_translator (struct node *np,
long, do nothing.) If this is a symlink (and diskfs_shortcut_symlink
is set) then this should clear the symlink, even if
diskfs_create_symlink_hook stores the link target elsewhere. */
-error_t diskfs_truncate (struct node *np, off_t size);
+error_t diskfs_truncate (struct node *np, loff_t size);
/* The user must define this function. Grow the disk allocated to locked node
NP to be at least SIZE bytes, and set NP->allocsize to the actual
allocated size. (If the allocated size is already SIZE bytes, do
nothing.) CRED identifies the user responsible for the call. */
-error_t diskfs_grow (struct node *np, off_t size, struct protid *cred);
+error_t diskfs_grow (struct node *np, loff_t size, struct protid *cred);
/* The user must define this function. Write to disk (synchronously
iff WAIT is nonzero) from format-specific buffers any non-paged
@@ -631,7 +631,7 @@ void diskfs_nrele_light (struct node *np);
extension). For reads, *AMTREAD is filled with the amount actually
read. */
error_t
-diskfs_node_rdwr (struct node *np, char *data, off_t off,
+diskfs_node_rdwr (struct node *np, char *data, loff_t off,
size_t amt, int dir, struct protid *cred,
size_t *amtread);
@@ -652,7 +652,7 @@ diskfs_notice_dirchange (struct node *dp, enum dir_changed_type type,
This should be called after the change is fully completed. */
void
diskfs_notice_filechange (struct node *np, enum file_changed_type type,
- off_t start, off_t end);
+ loff_t start, loff_t end);
/* Create a new node structure with DS as its physical disknode.
The new node will have one hard reference and no light references. */
@@ -750,7 +750,7 @@ error_t diskfs_dirremove (struct node *dp, struct node *np,
const char *name, struct dirstat *ds);
/* Return the node corresponding to CACHE_ID in *NPP. */
-error_t diskfs_cached_lookup (int cache_id, struct node **npp);
+error_t diskfs_cached_lookup (ino64_t cache_id, struct node **npp);
/* Create a new node. Give it MODE; if that includes IFDIR, also
initialize `.' and `..' in the new directory. Return the node in NPP.