Loki ha scritto:
> Uhm... ma perche' allora mi risponde in quel modo?
Non saprei.
Prova ad usare un mkfs.ext4 aggiornato.
Colla mia versione entrambe le opzioni, discard e nodiscard,
funzionano come previsto. Discard si può omettere, è il default:
lem@biggy:~$ sudo mkfs.ext4 -v -b 4096 -E stripe-width=128,discard /dev/ram2
mke2fs 1.41.14 (22-Dec-2010)
fs_types for mke2fs.conf resolution: 'ext4', 'small'
Calling BLKDISCARD from 0 to 67108864 succeeded.
Discard succeeded and will return 0s - skipping inode table wipe
[...]
lem@biggy:~$ sudo mkfs.ext4 -v -b 4096 -E stripe-width=128 /dev/ram2
mke2fs 1.41.14 (22-Dec-2010)
fs_types for mke2fs.conf resolution: 'ext4', 'small'
Calling BLKDISCARD from 0 to 67108864 succeeded.
Discard succeeded and will return 0s - skipping inode table wipe
[...]
lem@biggy:~$ sudo mkfs.ext4 -v -b 4096 -E stripe-width=128,nodiscard /dev/ram2
mke2fs 1.41.14 (22-Dec-2010)
fs_types for mke2fs.conf resolution: 'ext4', 'small'
Etichetta del filesystem=
[...]
Notare che il man dice invece cazzate contraddittorie (e nemmeno le
dice in inglese):
discard
Attempt to discard blocks at mkfs time
(discarding blocks initially is useful on solid state devices and
sparse / thin-provisioned storage). When the device advertises
that discard also zeroes data (any subsequent read after the
discard and before write returns zero), then mark all not-yet-zeroed
inode tables as zeroed. This significantly speeds up filesystem
initialization. This is set as default.
nodiscard
Do not attempt to discard blocks at mkfs
time. This is the default.