Bug 26528 - "mke2fs -n" trashes all data if the device supports discard commands
Summary: "mke2fs -n" trashes all data if the device supports discard commands
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: e2fsprogs (show other bugs)
Version: unstable
Hardware: all Linux
: P3 critical
Assignee: placeholder@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-29 19:17 MSK by Sergey Vlasov
Modified: 2011-10-30 13:18 MSK (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Vlasov 2011-10-29 19:17:05 MSK
При вызове mke2fs с опцией -n всё равно вызывается ioctl BLKDISCARD, что при наличии в устройстве поддержки соответствующих команд приведёт к потере всех данных, несмотря на наличие опции -n.

http://git.kernel.org/?p=fs/ext2/e2fsprogs.git;a=commitdiff;h=8185ab9f38f0e9cd06feab9d8e59d059bde84bf6
Comment 1 Dmitry V. Levin 2011-10-29 20:57:22 MSK
Попробую обновить до v1.42-WIP-1016.
Comment 2 Repository Robot 2011-10-30 00:08:43 MSK
e2fsprogs-1.42-alt0.1 -> sisyphus:

* Sat Oct 29 2011 Dmitry V. Levin <ldv@altlinux> 1.42-alt0.1
- Updated to v1.42-WIP-1016 (closes: #26528).
Comment 3 Michael Shigorin 2011-10-30 13:18:41 MSK
Ух ты...