mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
pv 955274 - Limit the random generated file size attribute to 1 TB (if size is too big the kernel panics)
Merge of master-melb:xfs-cmds:27060a by kenmcd. pv 955274 - Limit the random generated file size attribute to 1 TB (if size is too big the kernel panics)
This commit is contained in:
@@ -237,7 +237,7 @@ main(
|
||||
stat_arr[i].dt_uid=(uid_t)(rand()+rand()*0x10000);
|
||||
stat_arr[i].dt_gid=(gid_t)(rand()+rand()*0x10000);
|
||||
stat_arr[i].dt_mode=(mode_t)((rand()%4096)+32768);
|
||||
stat_arr[i].dt_size=(dm_off_t)(rand()+rand()*0x10000);
|
||||
stat_arr[i].dt_size=((dm_off_t)(rand()+rand()*0x10000)) & 0x3FFFFFFFFFFFF; /* 1 TB max */
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------*\
|
||||
|
||||
Reference in New Issue
Block a user