Displaying 1 result from an estimated 1 matches for "tssize".
Did you mean:
  tsize
  
2007 Jul 24
1
Custom kinit to find device by "label"
...This is where I need help.  Here is the
main function that needs to be translated into C:
function FindRootDeviceByLabel(const RootFSLabel: string): boolean;
const
  DEV_MAJOR: dev_t = 8;
  DEV_MODE: mode_t = S_IFBLK or &0660;
var
  ActualFSLabel: string;
  FileDescriptor: cint;
  ReadBytes: TsSize;
  DeviceFound: boolean;
  dev_minor: dev_t;
begin
  Result := False;
  SetLength(ActualFSLabel, Length(RootFSLabel));
  //loop through all devices that might have our root filesystem sda2 to sdp2
  dev_minor := 2;
  while dev_minor < 243 do begin // last one is 242
    if mknod(DEVICENAME, DEV...