Commit 0e1a6d27 by Ian Lance Taylor

mksysinfo: actually use modified Statfs_t value

    
    Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/165737

From-SVN: r269424
parent f29a1ef2
9b1374ded3d5e352a655d96bfe1bfb6aa1491a98 13c98c3477647888fc7a186e9055793b0961e806
The first line of this file holds the git revision number of the last The first line of this file holds the git revision number of the last
merge done from the gofrontend repository. merge done from the gofrontend repository.
...@@ -1115,14 +1115,13 @@ grep '^const _FALLOC_' gen-sysinfo.go | ...@@ -1115,14 +1115,13 @@ grep '^const _FALLOC_' gen-sysinfo.go |
# Prefer largefile variant if available. # Prefer largefile variant if available.
# CentOS 5 does not have f_flags, so pull from f_spare. # CentOS 5 does not have f_flags, so pull from f_spare.
statfs=`grep '^type _statfs64 ' gen-sysinfo.go || true` statfs=`grep '^type _statfs64 ' gen-sysinfo.go || true`
if test "$statfs" == ""; then
statfs=`grep '^type _statfs ' gen-sysinfo.go || true`
fi
if ! echo "$statfs" | grep f_flags; then if ! echo "$statfs" | grep f_flags; then
statfs=`echo "$statfs" | sed -e 's/f_spare \[4+1\]\([^ ;]*\)/f_flags \1; f_spare [3+1]\1/'` statfs=`echo "$statfs" | sed -e 's/f_spare \[4+1\]\([^ ;]*\)/f_flags \1; f_spare [3+1]\1/'`
fi fi
if test "$statfs" != ""; then echo "$statfs" | sed -e 's/type _statfs64/type Statfs_t/' \
grep '^type _statfs64 ' gen-sysinfo.go
else
grep '^type _statfs ' gen-sysinfo.go
fi | sed -e 's/type _statfs64/type Statfs_t/' \
-e 's/type _statfs/type Statfs_t/' \ -e 's/type _statfs/type Statfs_t/' \
-e 's/f_type/Type/' \ -e 's/f_type/Type/' \
-e 's/f_bsize/Bsize/' \ -e 's/f_bsize/Bsize/' \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment