Re: [lfs-support] how to test rw/ro/ of a file [Was: "I don't need to know"]

2016-11-13 Thread Paul Rogers
> The problem is rather your old glibc and kernel versions. Oh yes, that's been aparent from the start. ;-) I just thought there SHOULD be a prescribed way to test at any time if a fs was (really) mounted RW, even in an old kernel/glibc. > In glibc versions before 2.13, statvfs() populated the

[lfs-support] Adjusting the Toolchain

2016-11-13 Thread Richard Melville
I'm just in the process of running over (and modifying) my build scripts. I'm currently looking at "Adjusting the Toolchain", chapter 6.10 in the current stable book, and a question arose in my mind. Wouldn't it be better to copy ld-new rather than move it? Doing so would keep ld-new around in

Re: [lfs-support] how to test rw/ro/ of a file [Was: "I don't need to know"]

2016-11-13 Thread Thanos Baloukas
On 13/11/2016 03:02 πμ, Paul Rogers wrote: I don't understand what you are trying to do. If you want to check if a filesystem is mounted ro or rw you may want to test this trivial C program that utilizes the statvfs(3) glibc function. It needs a mountpoint as argument and prints ro or rw