diff options
author | Roland McGrath <roland@gnu.org> | 2000-12-27 00:26:21 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2000-12-27 00:26:21 +0000 |
commit | 7a8f1284789ee9ded7ab0f2ee1921a35ed9ea255 (patch) | |
tree | 061f0ef907418cd9dfd4fc9d5003f4f56ec7cdeb /libdiskfs/diskfs.h | |
parent | 15df16bf8667f96364265f7bd80f4c338daffa87 (diff) |
2000-12-26 Roland McGrath <roland@frob.com>
* file-statfs.c (diskfs_S_file_statfs): Zero out the struct statfs
before calling diskfs_set_statfs. Set f_namelen to diskfs_name_max
after the call.
* diskfs.h: Update comment.
Diffstat (limited to 'libdiskfs/diskfs.h')
-rw-r--r-- | libdiskfs/diskfs.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libdiskfs/diskfs.h b/libdiskfs/diskfs.h index e8974a11..d0c745f6 100644 --- a/libdiskfs/diskfs.h +++ b/libdiskfs/diskfs.h @@ -212,7 +212,7 @@ extern int diskfs_name_max; If this is exceeded, dir_pathtrans will return ELOOP. */ extern int diskfs_maxsymlinks; -/* This variable is defined by diskfs; the suer should set it if +/* This variable is defined by diskfs; the user should set it if the filesystem media cannot be made writeable. */ extern int diskfs_hard_readonly; @@ -270,7 +270,9 @@ extern int diskfs_default_sync_interval; extern char *diskfs_disk_name; /* The user must define this function. Set *STATFSBUF with - appropriate values to reflect the current state of the filesystem. */ + appropriate values to reflect the current state of the filesystem. + The buffer will be initialized to all zeros by the caller; + the caller will set f_namelen to diskfs_name_max. */ error_t diskfs_set_statfs (fsys_statfsbuf_t *statfsbuf); /* The user must define this function. Lookup in directory DP (which |