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


Groups > linux.kernel > #1686607

Re: [PATCH] nvmet: preserve controller serial number between reboots

From Martin Wilck <mwilck@suse.de>
Newsgroups linux.kernel
Subject Re: [PATCH] nvmet: preserve controller serial number between reboots
Date 2017-07-13 17:10 +0200
Message-ID <u2NUC-7ez-17@gated-at.bofh.it> (permalink)
References <u2Kan-4RD-37@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, 2017-07-13 at 12:48 +0200, Johannes Thumshirn wrote:
> The NVMe target has no way to preserve controller serial
> IDs across reboots which breaks udev scripts doing
> SYMLINK+="dev/disk/by-id/nvme-$env{ID_SERIAL}-part%n.
> 
> Export the randomly generated serial number via configfs and allow
> setting of a serial via configfs to mitigate this breakage.

I'm wondering if this should be a write-once attribute. Also,
Once the serial number has been passed on to some host (or maybe only:
while the device is in use by some host), the attribute should probably
be read-only.

Martin

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


Thread

[PATCH] nvmet: preserve controller serial number between reboots Johannes Thumshirn <jthumshirn@suse.de> - 2017-07-13 13:10 +0200
  Re: [PATCH] nvmet: preserve controller serial number between reboots Sagi Grimberg <sagi@grimberg.me> - 2017-07-13 14:40 +0200
    Re: [PATCH] nvmet: preserve controller serial number between reboots Johannes Thumshirn <jthumshirn@suse.de> - 2017-07-13 15:00 +0200
    Re: [PATCH] nvmet: preserve controller serial number between         reboots Christoph Hellwig <hch@lst.de> - 2017-07-13 15:10 +0200
      Re: [PATCH] nvmet: preserve controller serial number between reboots Johannes Thumshirn <jthumshirn@suse.de> - 2017-07-13 15:20 +0200
      Re: [PATCH] nvmet: preserve controller serial number between reboots Sagi Grimberg <sagi@grimberg.me> - 2017-07-13 18:40 +0200
        Re: [PATCH] nvmet: preserve controller serial number between         reboots Christoph Hellwig <hch@lst.de> - 2017-07-13 19:20 +0200
  Re: [PATCH] nvmet: preserve controller serial number between reboots Martin Wilck <mwilck@suse.de> - 2017-07-13 17:10 +0200
    Re: [PATCH] nvmet: preserve controller serial number between         reboots Christoph Hellwig <hch@lst.de> - 2017-07-13 17:20 +0200

csiph-web