* The following bugs are resolved with this release:
- 6804, 9894, 12994, 13347, 13651, 14308, 14770, 15119, 15347, 15514, 15804,
- 15894, 16002, 16064, 16198, 16284, 16348, 16349, 16357, 16362, 16447,
- 16516, 16532, 16545, 16564, 16574, 16599, 16600, 16609, 16610, 16611,
- 16613, 16619, 16623, 16629, 16632, 16634, 16639, 16642, 16648, 16649,
- 16670, 16674, 16677, 16680, 16683, 16689, 16695, 16701, 16706, 16707,
- 16712, 16713, 16714, 16724, 16731, 16739, 16740, 16743, 16754, 16758,
- 16759, 16760, 16770, 16786, 16789, 16791, 16796, 16799, 16800, 16815,
- 16823, 16824, 16831, 16838, 16849, 16854, 16876, 16877, 16878, 16885,
- 16888, 16890, 16912, 16915, 16916, 16917, 16922, 16927, 16928, 16932,
- 16943, 16958, 16966, 16967, 16965, 16977, 16978, 16984, 16990.
+ 6804, 9894, 12994, 13347, 13651, 14308, 14770, 15119, 15132, 15347, 15514,
+ 15804, 15894, 16002, 16064, 16198, 16284, 16348, 16349, 16357, 16362,
+ 16447, 16516, 16532, 16545, 16564, 16574, 16599, 16600, 16609, 16610,
+ 16611, 16613, 16619, 16623, 16629, 16632, 16634, 16639, 16642, 16648,
+ 16649, 16670, 16674, 16677, 16680, 16683, 16689, 16695, 16701, 16706,
+ 16707, 16712, 16713, 16714, 16724, 16731, 16739, 16740, 16743, 16754,
+ 16758, 16759, 16760, 16770, 16786, 16789, 16791, 16796, 16799, 16800,
+ 16815, 16823, 16824, 16831, 16838, 16849, 16854, 16876, 16877, 16878,
+ 16885, 16888, 16890, 16912, 16915, 16916, 16917, 16922, 16927, 16928,
+ 16932, 16943, 16958, 16966, 16967, 16965, 16977, 16978, 16984, 16990.
* The minimum Linux kernel version that this version of the GNU C Library
can be used with is 2.6.32.
# ifndef __ASSUME_STATFS_F_FLAGS
int
-__statvfs_getflags (const char *name, int fstype, struct stat64 *st)
+__statvfs_getflags (const char *name, int fstype, int fd)
{
- if (st == NULL)
+ struct stat64 st;
+
+ if ((fd < 0 ? stat64 (name, &st) : fstat64 (fd, &st)) < 0)
return 0;
const char *fsname = NULL;
/* Find out about the device the current entry is for. */
struct stat64 fsst;
if (stat64 (mntbuf.mnt_dir, &fsst) >= 0
- && st->st_dev == fsst.st_dev)
+ && st.st_dev == fsst.st_dev)
{
/* Bingo, we found the entry for the device FD is on.
Now interpret the option string. */
}
# endif
#else
-extern int __statvfs_getflags (const char *name, int fstype,
- struct stat64 *st);
+extern int __statvfs_getflags (const char *name, int fstype, int fd);
#endif
void
INTERNAL_STATVFS (const char *name, struct STATVFS *buf,
- struct STATFS *fsbuf, struct stat64 *st)
+ struct STATFS *fsbuf, int fd)
{
/* Now fill in the fields we have information for. */
buf->f_bsize = fsbuf->f_bsize;
the /etc/mtab file and search for the entry which matches the given
file. The way we can test for matching filesystem is using the
device number. */
- buf->f_flag = __statvfs_getflags (name, fsbuf->f_type, st);
+ buf->f_flag = __statvfs_getflags (name, fsbuf->f_type, fd);
else
#endif
buf->f_flag = fsbuf->f_flags ^ ST_VALID;