Re: CS4 U2 / crash when "less /proc/cluster/status"

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

 



Patrick Caulfield wrote:
less reads the start of the file in a small chunk (64 bytes I think) and the code in proc_cluster_status doesn't stop when it
reaches the 'length' parameter (slapped wrist).

That routine should really be changed to use seq_file like the rest of them.

It probably used to be OK, but more and more stuff has been added to the /proc file over time and it's a lot bigger than it used to be !
Patrick,

Yeah, that's how I'd fix it. The other proc files that use seq_file don't panic, so it probably will work.

Bob Peterson
Red Hat Cluster Suite

--
Linux-cluster mailing list
Linux-cluster@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/linux-cluster

[Index of Archives]     [Corosync Cluster Engine]     [GFS]     [Linux Virtualization]     [Centos Virtualization]     [Centos]     [Linux RAID]     [Fedora Users]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Camping]

  Powered by Linux