Used space in bytes
Quoted 7 lines · Jan Kara
used (I tried to contact Ulrich Drepper <[email protected]> who should be right person to ask about such things (at least I was said so) but go no answer...). Does anybody have any better solution?
I know about two others - really ugly ones:
1) fs specificioctl()
2) compute needed number of bytes fromst_sizeandst_blocks, which is currently possible but won't be in future
If I may, please do not add it into stat/stat64 structure. On Netware, computing really used space can take eons because of it has to read allocation tables to memory to find size. It is usually about 500% slower than retrieving all other file informations.
Or at least add some parameter to stat so that filesystem can say which informations are important for you. But I think that ioctl is less ugly. But that's just my opinion and I know that others here are strongly against ioctl.
Best regards,
Petr Vandrovec [email protected]
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
Hello.
Quoted 9 lines · Jan Kara
Quoted 7 lines
used (I tried to contact Ulrich Drepper <[email protected]> who should be right person to ask about such things (at least I was said so) but go no answer...). Does anybody have any better solution?
I know about two others - really ugly ones:
1) fs specificioctl()
2) compute needed number of bytes fromst_sizeandst_blocks, which is currently possible but won't be in future
Quoted 4 lines
If I may, please do not add it into stat/stat64 structure. On Netware, computing really used space can take eons because of it has to read allocation tables to memory to find size. It is usually about 500% slower than retrieving all other file informations.
And how do you fill in st_blocks field?
Honza
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
[Off topic] UK patent office wants comments on software patent laws.
In reply to Petr VandrovecOff topic for lkml, I know. But since software patents could have a huge impact on open source, UK residents on this list should be aware that the UK patent office is currently asking for comments on changes to the patent law regarding software and business patents.
Quoted 1 line
From their page:
"Should Patents be Granted for Computer Software or Ways of Doing Business?"
"We want to know what you think about this so that Government policy is evidence-based and relevant to business, commerce, and consumers - in other words to you. So, whether you are in the software industry, financial services, are a software user, a consumer, or are otherwise interested, we want to hear from you."
http://www.patent.gov.uk/snews/notices/softcons.html
news://discuss.patent.gov.uk/patentoffice.softpat
Signature · 5 lines
LarsG - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] Please read the FAQ at http://www.tux.org/lkml/