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

Bug#820156: parse_numeric function cannot handle composite device numbers of more than 8 hex digits



On Tue, Apr 5, 2016, at 20:37, Ben Hutchings wrote:
> 
> I'm not applying this until the kernel actually supports device numbers
> that large.  Currently it defines (in include/linux/kdev_t.h):
> 
> static inline u32 new_encode_dev(dev_t dev) { ... }
> static inline dev_t new_decode_dev(u32 dev) { ... }
> 
> static inline u64 huge_encode_dev(dev_t dev)
> {
> 	return new_encode_dev(dev);
> }
> 
> static inline dev_t huge_decode_dev(u64 dev)
> {
> 	return new_decode_dev(dev);
> }
> 
> i.e. anything above bit 31 is zeroed.
> 
> Ben.
> 

Interesting.  I wasn't aware of that.  Thank you for calling my attention
to it.  Under the circumstances, wishlist is fine.

Regards,

-- 
  .''`.     Stephen Powell    <zlinuxman@fastmail.com>
 : :'  :
 `. `'`
   `-


Reply to: