Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1340819

Re: [PATCH 01/10] mtip32xx: Abort secure erase when drive is mounted

From Jens Axboe <axboe@kernel.dk>
Newsgroups linux.kernel
Subject Re: [PATCH 01/10] mtip32xx: Abort secure erase when drive is mounted
Date 2016-02-23 17:20 +0100
Message-ID <r5nQS-7QI-3@gated-at.bofh.it> (permalink)
References <r5deO-8N-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, Feb 22 2016, Asai Thambi SP wrote:
> 
> To avoid erasing a device with a mounted filesystem, try to get exclusive
> access to the blkdev object corresponding to the device.

I don't think this needs to be in the kernel, why not just check from
the official format tool if the device is mounted or not?

-- 
Jens Axboe

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 01/10] mtip32xx: Abort secure erase when drive is mounted Asai Thambi SP <asamymuthupa@micron.com> - 2016-02-23 06:00 +0100
  Re: [PATCH 01/10] mtip32xx: Abort secure erase when drive is mounted Jens Axboe <axboe@kernel.dk> - 2016-02-23 17:20 +0100
    Re: [PATCH 01/10] mtip32xx: Abort secure erase when drive is mounted Asai Thambi SP <asamymuthupa@micron.com> - 2016-02-24 03:10 +0100
      Re: [PATCH 01/10] mtip32xx: Abort secure erase when drive is mounted Jens Axboe <axboe@kernel.dk> - 2016-02-24 03:20 +0100
        Re: [PATCH 01/10] mtip32xx: Abort secure erase when drive is mounted Asai Thambi SP <asamymuthupa@micron.com> - 2016-02-24 03:40 +0100

csiph-web