loopdev regression with v2.23

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

 



Hi,

I have a bug report that points out that v2.23 has disallowed losetup of
a block device with an offset:

https://bugs.archlinux.org/task/35193

As I also note in the bug report, I've bisected this to commit 293714c0d15.

I'm not clear on what the proper fix is here -- "expected_size" is set
to 0 since the fstat call is performed on a special file which has a 0
size. Is the right thing to do simply return 0 if the size of the
"backing file" is 0?

There's also the problem of the error message -- the fabricated ERANGE
return fails to also set errno=ERANGE before returning.

Cheers,
Dave
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux