glug: MDI: The worl is changing... ...welcome in the real world!

s.sartini s.sartini@linux.it
Gio 16 Dic 2004 18:08:24 CET


Marco d'Itri wrote:
> On Dec 16, "s.sartini" <s.sartini@linux.it> wrote:
> 
> 
>>Ma la backward compatibility ha per forza di cose (direi 
>>intrinsecamente) un prezzo che va pagato...
> 
> È piccolo, e visto quello che mi permette di fare lo pago più che
> volentieri.
> 
> 
>>>Io no. Tanto per iniziare, reiserfs non e` certo piu` stabile di ext3,
>>>e XFS richiede un tradeoff in termini di uso della CPU.
>>
>>"Io si" e "Io no" mi dicono poco se non mi specifichi l'uso che ne fai. 
>>Ognuno dei vari FS citati ha dei pro e dei contro, ad esempio XFS 
>>(certamente + oneroso come CPU) implementa un sistema di ACL nativo ed è 
>>pensato per scalare bene con tera e terabyte di spazio (pensa alle SAN), 
> 
> Anche ext[23] hanno le ACL da parecchio. Non che questo mi interessi
> particolarmente, visto che sostanzialmente servono solo a chi usa samba.
> 
> 
>>Ext3 tra l'altro sino a qche tempo fa si portava dietro ancora il limite 
>>a 2Gb per la grandezza massima d un file, onestamente non so se sia 
> 
> Che assurdità, sono anni e anni che ext3 non ha questo limite. A dire il
> vero non sono nemmeno sicuro che lo abbia mai avuto (a differenza delle
> API del kernel, che erano il problema).

Si, in realtà usando LSF il limite dei 2GB è abbattibile ma :

LFS in the Linux Kernel

Since Linux 2.4.0-test7 most of the kernel interface is included into 
the kernel. The open problems and restrictions are described below.
.
.
ext2/ext3
     Full support for LFS
.
.
  Using LFS

For using LFS in user programs, the programs have to use the LFS API. 
This involves recompilation and changes of programs. The API is 
documented in the glibc manual (the libc info pages) which can be read 
with e.g. "info libc".

In a nutshell for using LFS you can choose either of the following:

     * Compile your programs with "gcc -D_FILE_OFFSET_BITS=64". This 
forces all file access calls to use the 64 bit variants. Several types 
change also, e.g. off_t becomes off64_t. It's therefore important to 
always use the correct types and to not use e.g. int instead of off_t. 
For portability with other platforms you should use getconf LFS_CFLAGS 
which will return -D_FILE_OFFSET_BITS=64 on Linux platforms but might 
return something else on e.g. Solaris. For linking, you should use the 
link flags that are reported via getconf LFS_LDFLAGS. On Linux systems, 
you do not need special link flags.
     * Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE. With these 
defines you can use the LFS functions like open64 directly.
     * Use the O_LARGEFILE flag with open to operate on large files.


per completezza, ho preso da qui :

http://www.suse.de/~aj/linux_lfs.html

Le mie esperienze con Ext3 risalgono cmq ai tempi di RH 7, che 
probabilmente non aveva LFS implementato, e sono state decisamente 
pessime, dopodichè l'ho sempre evitato ;)

ste


Maggiori informazioni sulla lista glug