Re: [RFC 1/3] ramfs: add foofs for testing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Feb 28, 2014 at 08:44:26AM +0100, Alexander Aring wrote:
> +
> +	/* just for test zero file read */
> +	n = ramfs_get_inode();
> +	n->name = strdup("foobar");
> +	n->mode = S_IFREG | S_IRWXU | S_IRWXG | S_IRWXO;
> +	n->parent = &priv->root;
> +	n->child = priv->root.child;
> +	priv->root.child->next = n;

oops, I overwrite the ".." here, it should be
priv->root.child->next->next = n

sry, but you can test it anyway with this. :-)

- Alex

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox




[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux