Thread 'Incorrect "Total disk space" detection'

Message boards : Questions and problems : Incorrect "Total disk space" detection
Message board moderation

To post messages, you must log in.

Previous · 1 · 2

AuthorMessage
Juha
Volunteer developer
Volunteer tester
Help desk expert

Send message
Joined: 20 Nov 12
Posts: 801
Finland
Message 52427 - Posted: 7 Feb 2014, 19:28:10 UTC - in response to Message 52413.  

I can't get FUSE to actually mount an NTFS image without root privileges :(

Got that one sorted out.

Normally FUSE allows only the mounting user to access the mounted filesystem. Allowing everybody to access the filesystem would open door to some security issues. Just in case you know what you are doing FUSE provides allow_other mount option that you can use to override the default mode. Since security is in question using allow_other is allowed only to root or root can set it in fuse.conf to allow non-root users to use it.

For some reason the front end program to ntfs-3g sets allow_other by default and, as far as I can tell, doesn't provide any way to not set it.

I patched the ntfs-3g binary so that the option isn't set and now I can mount NTFS images without root privileges.

Quite a few distros install FUSE and ntfs-3g by default so this could still be an option.
ID: 52427 · Report as offensive
hoarfrost

Send message
Joined: 1 Feb 14
Posts: 11
Russia
Message 52499 - Posted: 11 Feb 2014, 21:30:23 UTC - in response to Message 52413.  

Wait what? I thought you were running the version you downloaded from here. If you compiled it yourself you can compile any version, including the latest recommended.

And if you can compile it yourself you can simply hardcode BOINC to report 10 PB of free disk space... (get_filesystem_info(), at the end of lib/filesys.cpp)

Initially, I was misinformed. BOINC has not been compiled on the cluster. This is the regular version.
ID: 52499 · Report as offensive
Juha
Volunteer developer
Volunteer tester
Help desk expert

Send message
Joined: 20 Nov 12
Posts: 801
Finland
Message 52530 - Posted: 13 Feb 2014, 19:12:01 UTC - in response to Message 52499.  

Wait what? I thought you were running the version you downloaded from here. If you compiled it yourself you can compile any version, including the latest recommended.

And if you can compile it yourself you can simply hardcode BOINC to report 10 PB of free disk space... (get_filesystem_info(), at the end of lib/filesys.cpp)

Initially, I was misinformed. BOINC has not been compiled on the cluster. This is the regular version.

I see, thanks for clarifying that. Erm... That raises the question is there something else that's different from what you have told us (no offense intended.)

Could you run these two commands:
stat -c "%m" /path/to/boincdata/client_state.xml
stat -f /path/to/boincdata/client_state.xml
ID: 52530 · Report as offensive
hoarfrost

Send message
Joined: 1 Feb 14
Posts: 11
Russia
Message 53055 - Posted: 8 Mar 2014, 18:36:52 UTC - in response to Message 52530.  
Last modified: 8 Mar 2014, 18:43:56 UTC

Hello! :-)

Could you run these two commands:
stat -c "%m" /path/to/boincdata/client_state.xml
stat -f /path/to/boincdata/client_state.xml


Output from host that run BOINC:
-sh-4.1$ stat -c "%m" client_state.xml
?
-sh-4.1$ stat -f client_state.xml
File: "client_state.xml"
ID: 0 Namelen: 255 Type: nfs
Block size: 16384 Fundamental block size: 16384
Blocks: Total: 393216 Free: 4775 Available: 4775
Inodes: Total: 21387593 Free: 21332666
-sh-4.1$


Strange... Total Blocks * Block size = 6G but real volume size is terabytes...
ID: 53055 · Report as offensive
Juha
Volunteer developer
Volunteer tester
Help desk expert

Send message
Joined: 20 Nov 12
Posts: 801
Finland
Message 53056 - Posted: 8 Mar 2014, 22:16:52 UTC - in response to Message 53055.  

-sh-4.1$ stat -c "%m" client_state.xml
?

Bummer, your stat is too old to know about %m. That command was supposed to tell the mountpoint for the filesystem that contains BOINC's data directory - is it /home2 or something else. You could dig that from output of mount or from /proc/mounts, picking the one that's closest to /path/to/boincdata or run the following commands:

cd /path/to/boincdata
while ! mountpoint `pwd`; do cd ..; done


-sh-4.1$ stat -f client_state.xml
File: "client_state.xml"
ID: 0 Namelen: 255 Type: nfs
Block size: 16384 Fundamental block size: 16384
Blocks: Total: 393216 Free: 4775 Available: 4775
Inodes: Total: 21387593 Free: 21332666
-sh-4.1$


Strange... Total Blocks * Block size = 6G but real volume size is terabytes...

Well, that does tell one thing: BOINC wasn't lying when it told you it was running on 6GB filesystem. At least not more than OS...

Back in February I peeked into source code of both df and stat to see if they do anything different from what BOINC does. I'm not sure anymore but I think df and stat fetched the filesystem details in essentially the same way.
ID: 53056 · Report as offensive
hoarfrost

Send message
Joined: 1 Feb 14
Posts: 11
Russia
Message 53067 - Posted: 9 Mar 2014, 10:41:04 UTC - in response to Message 53056.  

Juha, yes, it is "unexpected behavior" of OS on this computing system.
Thank you!
ID: 53067 · Report as offensive
Juha
Volunteer developer
Volunteer tester
Help desk expert

Send message
Joined: 20 Nov 12
Posts: 801
Finland
Message 53075 - Posted: 9 Mar 2014, 21:19:16 UTC - in response to Message 53067.  

Not sure if that means case closed, but glad I could be of help.
ID: 53075 · Report as offensive
Previous · 1 · 2

Message boards : Questions and problems : Incorrect "Total disk space" detection

Copyright © 2025 University of California.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.