Re: [5.14-rc1 regression] 7fe1e79b59ba configfs: implement the .read_iter and .write_iter methods - affects targetcli restore

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

 



On 7/12/21 12:10 PM, Yanko Kaneti wrote:
Bisected a problem that I have with targetcli restore to:

7fe1e79b59ba configfs: implement the .read_iter and .write_iter methods

With it reads of /sys/kernel/config/target/dbroot  go on infinitely,
returning  the config value over and over again.

e.g.

$ modprobe target_core_user
$ head -n 2 /sys/kernel/config/target/dbroot
/etc/target
/etc/target

Don't know if that's a problem with the commit or the target code, but
could perhaps be affecting other places.

The dbroot show method looks fine to me:

static ssize_t target_core_item_dbroot_show(struct config_item *item,
					    char *page)
{
	return sprintf(page, "%s\n", db_root);
}

Anyway, I can reproduce this behavior. I will take a look at this.

Bart.



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux