grub-devel
[Top][All Lists]
Advanced

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

Re: [PATCH v8 1/2] fs/erofs: Add support for EROFS


From: Yifan Zhao
Subject: Re: [PATCH v8 1/2] fs/erofs: Add support for EROFS
Date: Tue, 30 Apr 2024 21:26:44 +0800
User-agent: Mozilla Thunderbird


+  err = grub_disk_read (disk, EROFS_SUPER_OFFSET >> GRUB_DISK_SECTOR_BITS, 0,
+                       sizeof (sb), &sb);
+  if (grub_errno == GRUB_ERR_OUT_OF_RANGE)
+    grub_error (GRUB_ERR_BAD_FS, "not a valid erofs filesystem");
OUT_OF_RANGE is already treated the same asBAD_FS in context of opening a file 


Sorry, I didn't fully understand that. I copied similar logic from the ext2 driver (fs/ext2.c).

Are you suggesting that I should remove the error code conversion here?


All the other suggestions are great, I will reply in subsequent emails.


Thanks,

Yifan Zhao


reply via email to

[Prev in Thread] Current Thread [Next in Thread]