Re: [PATCH 3/3] tcm/fileio: Add UNMAP / Block DISCARD support

From: Rolf Eike Beer
Date: Tue Sep 28 2010 - 17:06:34 EST


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

Attachment: signature.asc
Description: This is a digitally signed message part.