xenbus.c (8e8c668927b029f6ccc350eb1aa936864cc4eb6f) xenbus.c (288dab8a35a0bde426a09870943c8d3ee3a50dab)
1/* Xenbus code for blkif backend
2 Copyright (C) 2005 Rusty Russell <rusty@rustcorp.com.au>
3 Copyright (C) 2005 XenSource Ltd
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.

--- 466 unchanged lines hidden (view full) ---

475 vbd->type |= VDISK_CDROM;
476 if (vbd->bdev->bd_disk->flags & GENHD_FL_REMOVABLE)
477 vbd->type |= VDISK_REMOVABLE;
478
479 q = bdev_get_queue(bdev);
480 if (q && test_bit(QUEUE_FLAG_WC, &q->queue_flags))
481 vbd->flush_support = true;
482
1/* Xenbus code for blkif backend
2 Copyright (C) 2005 Rusty Russell <rusty@rustcorp.com.au>
3 Copyright (C) 2005 XenSource Ltd
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.

--- 466 unchanged lines hidden (view full) ---

475 vbd->type |= VDISK_CDROM;
476 if (vbd->bdev->bd_disk->flags & GENHD_FL_REMOVABLE)
477 vbd->type |= VDISK_REMOVABLE;
478
479 q = bdev_get_queue(bdev);
480 if (q && test_bit(QUEUE_FLAG_WC, &q->queue_flags))
481 vbd->flush_support = true;
482
483 if (q && blk_queue_secdiscard(q))
483 if (q && blk_queue_secure_erase(q))
484 vbd->discard_secure = true;
485
486 pr_debug("Successful creation of handle=%04x (dom=%u)\n",
487 handle, blkif->domid);
488 return 0;
489}
490static int xen_blkbk_remove(struct xenbus_device *dev)
491{

--- 621 unchanged lines hidden ---
484 vbd->discard_secure = true;
485
486 pr_debug("Successful creation of handle=%04x (dom=%u)\n",
487 handle, blkif->domid);
488 return 0;
489}
490static int xen_blkbk_remove(struct xenbus_device *dev)
491{

--- 621 unchanged lines hidden ---