Messages in this thread | | | From | Rolf Eike Beer <> | Subject | Re: [PATCH 3/3] tcm/fileio: Add UNMAP / Block DISCARD support | Date | Tue, 28 Sep 2010 23:06:22 +0200 |
| |
Nicholas A. Bellinger wrote:
> @@ -433,6 +448,42 @@ static int fd_emulate_scsi_cdb(struct se_task *task) > if (ret < 0) > return ret; > break; > + case UNMAP: > + i = igrab(f->f_mapping->host); > + if (!(i)) {
.....
> + if (!(S_ISBLK(i->i_mode))) {
.....
> + if (!(bd)) {
Is this LISP or what? ;)
Eike [unhandled content-type:application/pgp-signature] | |