From 7a8f1284789ee9ded7ab0f2ee1921a35ed9ea255 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 27 Dec 2000 00:26:21 +0000 Subject: 2000-12-26 Roland McGrath * 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. --- libdiskfs/diskfs.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libdiskfs/diskfs.h') 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 -- cgit v1.2.3